valtech-components 4.0.447 → 4.0.449
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-challenge-progress.service.mjs +12 -2
- package/esm2022/lib/components/organisms/mini-games/chessimals-engine.mjs +16 -109
- package/esm2022/lib/components/organisms/mini-games/chessimals-game.component.mjs +74 -26
- package/esm2022/lib/components/organisms/mini-games/memory-game.component.mjs +9 -18
- package/esm2022/lib/components/organisms/mini-games/mini-games.i18n.mjs +19 -149
- 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 +143 -1916
- 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-challenge-progress.service.d.ts +1 -0
- package/lib/components/organisms/mini-games/chessimals-game.component.d.ts +7 -4
- 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 -74
- 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 -1531
- package/esm2022/lib/directives/light-ripple.directive.mjs +0 -57
- package/lib/components/organisms/mini-games/christianity-game.component.d.ts +0 -103
- package/lib/directives/light-ripple.directive.d.ts +0 -8
|
@@ -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;
|
|
@@ -8,6 +8,7 @@ export declare class ChessimalsChallengeProgressService {
|
|
|
8
8
|
get currentUid(): string | undefined;
|
|
9
9
|
watchStats(): Observable<ChessimalsChallengeStats | undefined>;
|
|
10
10
|
watchRecentRuns(limitCount?: number): Observable<ChessimalsChallengeRun[]>;
|
|
11
|
+
watchActiveRun(): Observable<ChessimalsChallengeRun | undefined>;
|
|
11
12
|
saveRun(run: ChessimalsChallengeRun): Promise<void>;
|
|
12
13
|
recordChallengeStarted(run: ChessimalsChallengeRun): Promise<void>;
|
|
13
14
|
applyRoundResult(args: {
|
|
@@ -11,7 +11,7 @@ interface ChessimalsAnimalView {
|
|
|
11
11
|
assetSrc: string;
|
|
12
12
|
tone: number;
|
|
13
13
|
}
|
|
14
|
-
type ChessimalsConfirmAction = 'restart' | 'mode' | 'games' | 'resign';
|
|
14
|
+
type ChessimalsConfirmAction = 'restart' | 'mode' | 'games' | 'resign' | 'challenge-new';
|
|
15
15
|
type ChessimalsRematchState = 'none' | 'requested' | 'incoming';
|
|
16
16
|
type ChessimalsChallengePhase = 'idle' | 'playing' | 'between' | 'completed' | 'failed';
|
|
17
17
|
interface ChessimalsMovingPieceView {
|
|
@@ -54,6 +54,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
54
54
|
private historySubscription;
|
|
55
55
|
private challengeStatsSubscription;
|
|
56
56
|
private challengeRunsSubscription;
|
|
57
|
+
private challengeActiveRunSubscription;
|
|
57
58
|
private historyUid;
|
|
58
59
|
private historyWatchTimer;
|
|
59
60
|
private moveEffectStartTimer;
|
|
@@ -71,7 +72,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
71
72
|
readonly botProfiles: ChessimalsBotProfile[];
|
|
72
73
|
readonly challengeLadder: ChessimalsChallengeBot[];
|
|
73
74
|
readonly animals: ChessimalsAnimalView[];
|
|
74
|
-
readonly valtechComponentsVersion = "4.0.
|
|
75
|
+
readonly valtechComponentsVersion = "4.0.449";
|
|
75
76
|
readonly screen: import("@angular/core").WritableSignal<"home" | "game">;
|
|
76
77
|
readonly selectedBoardSize: import("@angular/core").WritableSignal<ChessimalsBoardSize>;
|
|
77
78
|
readonly selectedLocalMode: import("@angular/core").WritableSignal<ChessimalsLocalMode>;
|
|
@@ -83,6 +84,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
83
84
|
readonly challengeRun: import("@angular/core").WritableSignal<ChessimalsChallengeRun>;
|
|
84
85
|
readonly challengeStats: import("@angular/core").WritableSignal<ChessimalsChallengeStats>;
|
|
85
86
|
readonly challengeHistory: import("@angular/core").WritableSignal<ChessimalsChallengeRun[]>;
|
|
87
|
+
readonly activeStoredChallengeRun: import("@angular/core").WritableSignal<ChessimalsChallengeRun>;
|
|
86
88
|
readonly challengeLastWon: import("@angular/core").WritableSignal<boolean>;
|
|
87
89
|
readonly challengeLastBot: import("@angular/core").WritableSignal<ChessimalsChallengeBot>;
|
|
88
90
|
readonly challengeLastRoundStats: import("@angular/core").WritableSignal<ChessimalsChallengeRoundStats>;
|
|
@@ -100,7 +102,6 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
100
102
|
readonly moveTrail: import("@angular/core").Signal<ChessimalsMoveTrailView>;
|
|
101
103
|
readonly botThinking: import("@angular/core").WritableSignal<boolean>;
|
|
102
104
|
readonly confirmAction: import("@angular/core").WritableSignal<ChessimalsConfirmAction>;
|
|
103
|
-
private readonly confirmedAction;
|
|
104
105
|
readonly onlineJoinCode: import("@angular/core").WritableSignal<string>;
|
|
105
106
|
readonly onlineLoading: import("@angular/core").WritableSignal<boolean>;
|
|
106
107
|
readonly onlineAction: import("@angular/core").WritableSignal<"create" | "join" | "accept" | "reject">;
|
|
@@ -202,11 +203,14 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
202
203
|
private shortUserId;
|
|
203
204
|
private rangeValueToNumber;
|
|
204
205
|
startChallenge(): void;
|
|
206
|
+
private createNewChallengeRun;
|
|
207
|
+
resumeChallenge(run?: ChessimalsChallengeRun): void;
|
|
205
208
|
continueChallenge(): void;
|
|
206
209
|
private startChallengeRound;
|
|
207
210
|
startGame(): void;
|
|
208
211
|
private handleChallengeRoundFinished;
|
|
209
212
|
private abandonChallengeIfNeeded;
|
|
213
|
+
private abandonChallengeRun;
|
|
210
214
|
startTutorial(): void;
|
|
211
215
|
createOnlineGame(): Promise<void>;
|
|
212
216
|
joinOnlineGameByCode(): Promise<void>;
|
|
@@ -221,7 +225,6 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
221
225
|
requestChangeGame(): void;
|
|
222
226
|
requestResign(): void;
|
|
223
227
|
closeConfirmModal(): void;
|
|
224
|
-
handleConfirmModalDismissed(): void;
|
|
225
228
|
confirmPendingAction(token?: string): void;
|
|
226
229
|
private resignGame;
|
|
227
230
|
openRulesModal(): void;
|
|
@@ -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,76 +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
|
-
attack: number;
|
|
267
|
-
currentHp: number;
|
|
268
|
-
maxHp: number;
|
|
269
|
-
canAttack: boolean;
|
|
270
|
-
}
|
|
271
|
-
export interface ChristianityOfferingInstance {
|
|
272
|
-
instanceId: string;
|
|
273
|
-
cardId: string;
|
|
274
|
-
name: string;
|
|
275
|
-
owner: ChristianitySeat;
|
|
276
|
-
ready: boolean;
|
|
277
|
-
value: number;
|
|
278
|
-
abilityName?: string;
|
|
279
|
-
abilityText?: string;
|
|
280
|
-
abilityCost?: number;
|
|
281
|
-
}
|
|
282
|
-
export interface ChristianityPlayerState {
|
|
283
|
-
seat: ChristianitySeat;
|
|
284
|
-
displayName: string;
|
|
285
|
-
avatar?: string;
|
|
286
|
-
avatarColor?: string;
|
|
287
|
-
leaderName: string;
|
|
288
|
-
leaderHp: number;
|
|
289
|
-
leaderMaxHp: number;
|
|
290
|
-
offerings: ChristianityOfferingInstance[];
|
|
291
|
-
offeringPlayedThisTurn: boolean;
|
|
292
|
-
hand?: string[];
|
|
293
|
-
handCount?: number;
|
|
294
|
-
battleZone: ChristianityCharacterInstance[];
|
|
295
|
-
}
|
|
296
|
-
export interface ChristianityGameState {
|
|
297
|
-
gameId: string;
|
|
298
|
-
status: ChristianityGameStatus;
|
|
299
|
-
mode: ChristianityGameMode;
|
|
300
|
-
turnOwner: ChristianitySeat;
|
|
301
|
-
revision: number;
|
|
302
|
-
turnCount: number;
|
|
303
|
-
matchScore: Record<ChristianitySeat, number>;
|
|
304
|
-
sharedDeck: string[];
|
|
305
|
-
historyZone: string[];
|
|
306
|
-
players: Record<ChristianitySeat, ChristianityPlayerState>;
|
|
307
|
-
log: string[];
|
|
308
|
-
}
|
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.449",
|
|
4
4
|
"private": false,
|
|
5
5
|
"bin": {
|
|
6
6
|
"valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
"directory": "frontend/valtech-components"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@angular/cdk": "^18.0.0",
|
|
15
14
|
"@angular/common": "^18.0.0",
|
|
16
15
|
"@angular/core": "^18.0.0",
|
|
17
16
|
"@angular/fire": "^18.0.1",
|
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';
|