valtech-components 4.0.500 → 4.0.502
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-challenge-progress.service.mjs +61 -15
- package/esm2022/lib/components/organisms/mini-games/chessimals-game.component.mjs +463 -336
- package/esm2022/lib/components/organisms/mini-games/mini-games.i18n.mjs +71 -7
- package/esm2022/lib/components/organisms/mini-games/types.mjs +1 -1
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +593 -356
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/mini-games/chessimals-challenge-progress.service.d.ts +5 -0
- package/lib/components/organisms/mini-games/chessimals-game.component.d.ts +25 -5
- package/lib/components/organisms/mini-games/types.d.ts +1 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -31,6 +31,11 @@ export declare class ChessimalsChallengeProgressService {
|
|
|
31
31
|
private runsPath;
|
|
32
32
|
private readLocalActiveRun;
|
|
33
33
|
private writeLocalActiveRun;
|
|
34
|
+
private clearLocalActiveRun;
|
|
35
|
+
private localActiveRunKey;
|
|
36
|
+
private newestActiveRun;
|
|
37
|
+
private runProgressScore;
|
|
38
|
+
private runTime;
|
|
34
39
|
private withoutUndefined;
|
|
35
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChessimalsChallengeProgressService, never>;
|
|
36
41
|
static ɵprov: i0.ɵɵInjectableDeclaration<ChessimalsChallengeProgressService>;
|
|
@@ -58,6 +58,12 @@ interface ChessimalsProgressMetricView {
|
|
|
58
58
|
label: string;
|
|
59
59
|
value: string | number;
|
|
60
60
|
}
|
|
61
|
+
interface ChessimalsProgressRingView {
|
|
62
|
+
label: string;
|
|
63
|
+
value: string;
|
|
64
|
+
detail: string;
|
|
65
|
+
progress: string;
|
|
66
|
+
}
|
|
61
67
|
interface ChessimalsMoveScoreView {
|
|
62
68
|
combo: number;
|
|
63
69
|
label: string;
|
|
@@ -117,8 +123,8 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
117
123
|
readonly botProfiles: ChessimalsBotProfile[];
|
|
118
124
|
readonly challengeLadder: ChessimalsChallengeBot[];
|
|
119
125
|
readonly animals: ChessimalsAnimalView[];
|
|
120
|
-
readonly valtechComponentsVersion = "4.0.
|
|
121
|
-
readonly screen: import("@angular/core").WritableSignal<"home" | "challenge" | "game">;
|
|
126
|
+
readonly valtechComponentsVersion = "4.0.502";
|
|
127
|
+
readonly screen: import("@angular/core").WritableSignal<"home" | "challenge" | "path" | "game">;
|
|
122
128
|
readonly selectedBoardSize: import("@angular/core").WritableSignal<ChessimalsBoardSize>;
|
|
123
129
|
readonly selectedLocalMode: import("@angular/core").WritableSignal<ChessimalsLocalMode>;
|
|
124
130
|
readonly selectedBotDifficulty: import("@angular/core").WritableSignal<ChessimalsBotDifficulty>;
|
|
@@ -140,7 +146,6 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
140
146
|
readonly selectedAnimal: import("@angular/core").WritableSignal<ChessimalsAnimalType>;
|
|
141
147
|
readonly isRulesModalOpen: import("@angular/core").WritableSignal<boolean>;
|
|
142
148
|
readonly isSettingsModalOpen: import("@angular/core").WritableSignal<boolean>;
|
|
143
|
-
readonly isProgressModalOpen: import("@angular/core").WritableSignal<boolean>;
|
|
144
149
|
readonly isAboutModalOpen: import("@angular/core").WritableSignal<boolean>;
|
|
145
150
|
readonly tutorialMode: import("@angular/core").WritableSignal<boolean>;
|
|
146
151
|
readonly isBoardOrienting: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -182,6 +187,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
182
187
|
readonly selectedBotProfile: import("@angular/core").Signal<ChessimalsBotProfile>;
|
|
183
188
|
readonly gameBotProfile: import("@angular/core").Signal<ChessimalsBotProfile>;
|
|
184
189
|
readonly activeChallengeBot: import("@angular/core").Signal<ChessimalsChallengeBot>;
|
|
190
|
+
readonly resumableChallengeRun: import("@angular/core").Signal<ChessimalsChallengeRun>;
|
|
185
191
|
set onlineGameId(value: string | null | undefined);
|
|
186
192
|
miniGamesRoute: string;
|
|
187
193
|
projectionMode: boolean;
|
|
@@ -259,12 +265,16 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
259
265
|
private shortUserId;
|
|
260
266
|
private rangeValueToNumber;
|
|
261
267
|
startChallenge(): void;
|
|
268
|
+
requestNewChallenge(): void;
|
|
262
269
|
openChallengeView(): void;
|
|
263
270
|
backToHome(): void;
|
|
264
271
|
private createNewChallengeRun;
|
|
272
|
+
private resetChallengeSessionState;
|
|
265
273
|
resumeChallenge(run?: ChessimalsChallengeRun): void;
|
|
266
274
|
continueChallenge(): void;
|
|
267
275
|
private startChallengeRound;
|
|
276
|
+
private enterChallengeRound;
|
|
277
|
+
private isResumableChallengeRun;
|
|
268
278
|
startGame(): void;
|
|
269
279
|
private handleChallengeRoundFinished;
|
|
270
280
|
private abandonChallengeIfNeeded;
|
|
@@ -276,6 +286,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
276
286
|
restartGame(): void;
|
|
277
287
|
exitTutorial(): void;
|
|
278
288
|
resetToModeSetup(): void;
|
|
289
|
+
private returnChallengeToMenu;
|
|
279
290
|
resetToGamesMenu(): void;
|
|
280
291
|
private resetFinishedLocalGameForNextVisit;
|
|
281
292
|
requestRestartGame(): void;
|
|
@@ -290,8 +301,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
290
301
|
closeRulesModal(): void;
|
|
291
302
|
openSettingsModal(): void;
|
|
292
303
|
closeSettingsModal(): void;
|
|
293
|
-
|
|
294
|
-
closeProgressModal(): void;
|
|
304
|
+
openPathView(): void;
|
|
295
305
|
openAboutModal(): void;
|
|
296
306
|
closeAboutModal(): void;
|
|
297
307
|
setMusicVolume(value: number | RangeValue): void;
|
|
@@ -311,6 +321,9 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
311
321
|
private isPromotionMove;
|
|
312
322
|
private animateMove;
|
|
313
323
|
private applyAnimatedMove;
|
|
324
|
+
private activeGameForRun;
|
|
325
|
+
private persistActiveChallengeGame;
|
|
326
|
+
private cloneChallengeGame;
|
|
314
327
|
private playPowerUnlockSound;
|
|
315
328
|
private queueBotTurnIfNeeded;
|
|
316
329
|
private playBotTurn;
|
|
@@ -406,6 +419,9 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
406
419
|
challengeOpeningBot(): ChessimalsChallengeBot;
|
|
407
420
|
challengeMenuBot(): ChessimalsChallengeBot;
|
|
408
421
|
challengeMenuRoundLabel(): string;
|
|
422
|
+
challengeMenuLivesLabel(): string;
|
|
423
|
+
challengeMenuClearedRound(): number;
|
|
424
|
+
private challengeMenuRun;
|
|
409
425
|
challengeBotName(bot: ChessimalsChallengeBot): string;
|
|
410
426
|
challengeBotDifficultyLabel(bot: ChessimalsChallengeBot): string;
|
|
411
427
|
challengeBotStyleLine(bot: ChessimalsChallengeBot): string;
|
|
@@ -431,6 +447,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
431
447
|
challengeRivalVoiceLabel(): string;
|
|
432
448
|
challengeRivalVoiceTitle(): string;
|
|
433
449
|
challengeRivalVoiceBody(): string;
|
|
450
|
+
private challengeVoiceText;
|
|
434
451
|
challengeNextRivalLabel(): string;
|
|
435
452
|
challengeContinueLabel(): string;
|
|
436
453
|
challengeNextRivalHint(): string;
|
|
@@ -438,6 +455,9 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
438
455
|
modeWinRateLabel(mode: ChessimalsStatsMode): string;
|
|
439
456
|
modeStatsLine(mode: ChessimalsStatsMode): string;
|
|
440
457
|
progressPowerStats(): ChessimalsProgressMetricView[];
|
|
458
|
+
progressRings(): ChessimalsProgressRingView[];
|
|
459
|
+
progressMetricPercent(value: string | number): string;
|
|
460
|
+
private progressRing;
|
|
441
461
|
challengeAchievements(): ChessimalsAchievementView[];
|
|
442
462
|
challengeFeaturedAchievements(): ChessimalsAchievementView[];
|
|
443
463
|
challengeTensionMoment(): ChessimalsChallengeTensionView | undefined;
|
|
@@ -102,6 +102,7 @@ export interface ChessimalsChallengeRun {
|
|
|
102
102
|
currentStreak: number;
|
|
103
103
|
botLadder: string[];
|
|
104
104
|
roundResults: ChessimalsChallengeRoundResult[];
|
|
105
|
+
activeGame?: ChessimalsGameState;
|
|
105
106
|
startedAt: string;
|
|
106
107
|
updatedAt: string;
|
|
107
108
|
finishedAt?: string;
|
package/lib/version.d.ts
CHANGED