valtech-components 4.0.502 → 4.0.504
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 +15 -61
- package/esm2022/lib/components/organisms/mini-games/chessimals-game.component.mjs +336 -463
- package/esm2022/lib/components/organisms/mini-games/christianity-game.component.mjs +107 -8
- package/esm2022/lib/components/organisms/mini-games/christianity-rules.mjs +18 -2
- package/esm2022/lib/components/organisms/mini-games/mini-games.i18n.mjs +9 -71
- package/esm2022/lib/components/organisms/mini-games/types.mjs +1 -1
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +481 -601
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/mini-games/chessimals-challenge-progress.service.d.ts +0 -5
- package/lib/components/organisms/mini-games/chessimals-game.component.d.ts +5 -25
- package/lib/components/organisms/mini-games/christianity-game.component.d.ts +8 -0
- package/lib/components/organisms/mini-games/types.d.ts +0 -1
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -31,11 +31,6 @@ 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;
|
|
39
34
|
private withoutUndefined;
|
|
40
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChessimalsChallengeProgressService, never>;
|
|
41
36
|
static ɵprov: i0.ɵɵInjectableDeclaration<ChessimalsChallengeProgressService>;
|
|
@@ -58,12 +58,6 @@ 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
|
-
}
|
|
67
61
|
interface ChessimalsMoveScoreView {
|
|
68
62
|
combo: number;
|
|
69
63
|
label: string;
|
|
@@ -123,8 +117,8 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
123
117
|
readonly botProfiles: ChessimalsBotProfile[];
|
|
124
118
|
readonly challengeLadder: ChessimalsChallengeBot[];
|
|
125
119
|
readonly animals: ChessimalsAnimalView[];
|
|
126
|
-
readonly valtechComponentsVersion = "4.0.
|
|
127
|
-
readonly screen: import("@angular/core").WritableSignal<"home" | "challenge" | "
|
|
120
|
+
readonly valtechComponentsVersion = "4.0.504";
|
|
121
|
+
readonly screen: import("@angular/core").WritableSignal<"home" | "challenge" | "game">;
|
|
128
122
|
readonly selectedBoardSize: import("@angular/core").WritableSignal<ChessimalsBoardSize>;
|
|
129
123
|
readonly selectedLocalMode: import("@angular/core").WritableSignal<ChessimalsLocalMode>;
|
|
130
124
|
readonly selectedBotDifficulty: import("@angular/core").WritableSignal<ChessimalsBotDifficulty>;
|
|
@@ -146,6 +140,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
146
140
|
readonly selectedAnimal: import("@angular/core").WritableSignal<ChessimalsAnimalType>;
|
|
147
141
|
readonly isRulesModalOpen: import("@angular/core").WritableSignal<boolean>;
|
|
148
142
|
readonly isSettingsModalOpen: import("@angular/core").WritableSignal<boolean>;
|
|
143
|
+
readonly isProgressModalOpen: import("@angular/core").WritableSignal<boolean>;
|
|
149
144
|
readonly isAboutModalOpen: import("@angular/core").WritableSignal<boolean>;
|
|
150
145
|
readonly tutorialMode: import("@angular/core").WritableSignal<boolean>;
|
|
151
146
|
readonly isBoardOrienting: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -187,7 +182,6 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
187
182
|
readonly selectedBotProfile: import("@angular/core").Signal<ChessimalsBotProfile>;
|
|
188
183
|
readonly gameBotProfile: import("@angular/core").Signal<ChessimalsBotProfile>;
|
|
189
184
|
readonly activeChallengeBot: import("@angular/core").Signal<ChessimalsChallengeBot>;
|
|
190
|
-
readonly resumableChallengeRun: import("@angular/core").Signal<ChessimalsChallengeRun>;
|
|
191
185
|
set onlineGameId(value: string | null | undefined);
|
|
192
186
|
miniGamesRoute: string;
|
|
193
187
|
projectionMode: boolean;
|
|
@@ -265,16 +259,12 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
265
259
|
private shortUserId;
|
|
266
260
|
private rangeValueToNumber;
|
|
267
261
|
startChallenge(): void;
|
|
268
|
-
requestNewChallenge(): void;
|
|
269
262
|
openChallengeView(): void;
|
|
270
263
|
backToHome(): void;
|
|
271
264
|
private createNewChallengeRun;
|
|
272
|
-
private resetChallengeSessionState;
|
|
273
265
|
resumeChallenge(run?: ChessimalsChallengeRun): void;
|
|
274
266
|
continueChallenge(): void;
|
|
275
267
|
private startChallengeRound;
|
|
276
|
-
private enterChallengeRound;
|
|
277
|
-
private isResumableChallengeRun;
|
|
278
268
|
startGame(): void;
|
|
279
269
|
private handleChallengeRoundFinished;
|
|
280
270
|
private abandonChallengeIfNeeded;
|
|
@@ -286,7 +276,6 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
286
276
|
restartGame(): void;
|
|
287
277
|
exitTutorial(): void;
|
|
288
278
|
resetToModeSetup(): void;
|
|
289
|
-
private returnChallengeToMenu;
|
|
290
279
|
resetToGamesMenu(): void;
|
|
291
280
|
private resetFinishedLocalGameForNextVisit;
|
|
292
281
|
requestRestartGame(): void;
|
|
@@ -301,7 +290,8 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
301
290
|
closeRulesModal(): void;
|
|
302
291
|
openSettingsModal(): void;
|
|
303
292
|
closeSettingsModal(): void;
|
|
304
|
-
|
|
293
|
+
openProgressModal(): void;
|
|
294
|
+
closeProgressModal(): void;
|
|
305
295
|
openAboutModal(): void;
|
|
306
296
|
closeAboutModal(): void;
|
|
307
297
|
setMusicVolume(value: number | RangeValue): void;
|
|
@@ -321,9 +311,6 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
321
311
|
private isPromotionMove;
|
|
322
312
|
private animateMove;
|
|
323
313
|
private applyAnimatedMove;
|
|
324
|
-
private activeGameForRun;
|
|
325
|
-
private persistActiveChallengeGame;
|
|
326
|
-
private cloneChallengeGame;
|
|
327
314
|
private playPowerUnlockSound;
|
|
328
315
|
private queueBotTurnIfNeeded;
|
|
329
316
|
private playBotTurn;
|
|
@@ -419,9 +406,6 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
419
406
|
challengeOpeningBot(): ChessimalsChallengeBot;
|
|
420
407
|
challengeMenuBot(): ChessimalsChallengeBot;
|
|
421
408
|
challengeMenuRoundLabel(): string;
|
|
422
|
-
challengeMenuLivesLabel(): string;
|
|
423
|
-
challengeMenuClearedRound(): number;
|
|
424
|
-
private challengeMenuRun;
|
|
425
409
|
challengeBotName(bot: ChessimalsChallengeBot): string;
|
|
426
410
|
challengeBotDifficultyLabel(bot: ChessimalsChallengeBot): string;
|
|
427
411
|
challengeBotStyleLine(bot: ChessimalsChallengeBot): string;
|
|
@@ -447,7 +431,6 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
447
431
|
challengeRivalVoiceLabel(): string;
|
|
448
432
|
challengeRivalVoiceTitle(): string;
|
|
449
433
|
challengeRivalVoiceBody(): string;
|
|
450
|
-
private challengeVoiceText;
|
|
451
434
|
challengeNextRivalLabel(): string;
|
|
452
435
|
challengeContinueLabel(): string;
|
|
453
436
|
challengeNextRivalHint(): string;
|
|
@@ -455,9 +438,6 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
455
438
|
modeWinRateLabel(mode: ChessimalsStatsMode): string;
|
|
456
439
|
modeStatsLine(mode: ChessimalsStatsMode): string;
|
|
457
440
|
progressPowerStats(): ChessimalsProgressMetricView[];
|
|
458
|
-
progressRings(): ChessimalsProgressRingView[];
|
|
459
|
-
progressMetricPercent(value: string | number): string;
|
|
460
|
-
private progressRing;
|
|
461
441
|
challengeAchievements(): ChessimalsAchievementView[];
|
|
462
442
|
challengeFeaturedAchievements(): ChessimalsAchievementView[];
|
|
463
443
|
challengeTensionMoment(): ChessimalsChallengeTensionView | undefined;
|
|
@@ -56,6 +56,7 @@ export declare class ChristianityGameComponent {
|
|
|
56
56
|
protected readonly hoveredHandIndex: import("@angular/core").WritableSignal<number>;
|
|
57
57
|
protected readonly draggingCardId: import("@angular/core").WritableSignal<string>;
|
|
58
58
|
protected readonly draggingAttackerInstanceId: import("@angular/core").WritableSignal<string>;
|
|
59
|
+
protected readonly historyPulse: import("@angular/core").WritableSignal<boolean>;
|
|
59
60
|
protected readonly showHistory: import("@angular/core").WritableSignal<boolean>;
|
|
60
61
|
protected readonly showGallery: import("@angular/core").WritableSignal<boolean>;
|
|
61
62
|
protected readonly offeringsSeat: import("@angular/core").WritableSignal<ChristianitySeat>;
|
|
@@ -67,6 +68,7 @@ export declare class ChristianityGameComponent {
|
|
|
67
68
|
protected readonly galleryType: import("@angular/core").WritableSignal<ChristianityGalleryTypeFilter>;
|
|
68
69
|
protected readonly canDropOnBattleSlot: (drag: CdkDrag<string>) => boolean;
|
|
69
70
|
protected readonly canDropOnOfferings: (drag: CdkDrag<string>) => boolean;
|
|
71
|
+
protected readonly canDropOnPlace: (drag: CdkDrag<string>) => boolean;
|
|
70
72
|
protected readonly canDropOnOpponentCharacter: (drag: CdkDrag<string>) => boolean;
|
|
71
73
|
protected readonly canDropOnOpponentLeader: (drag: CdkDrag<string>) => boolean;
|
|
72
74
|
protected readonly player: import("@angular/core").Signal<ChristianityPlayerState>;
|
|
@@ -85,6 +87,7 @@ export declare class ChristianityGameComponent {
|
|
|
85
87
|
}[]>;
|
|
86
88
|
protected readonly hasModalOverlay: import("@angular/core").Signal<boolean>;
|
|
87
89
|
protected readonly canNavigateHistoryPreview: import("@angular/core").Signal<boolean>;
|
|
90
|
+
protected readonly historyPreviewPositionLabel: import("@angular/core").Signal<string>;
|
|
88
91
|
protected readonly splashStatusText: import("@angular/core").Signal<string>;
|
|
89
92
|
protected readonly startFeaturedCards: import("@angular/core").Signal<ChristianityCardDefinition[]>;
|
|
90
93
|
protected readonly futureModes: import("@angular/core").Signal<{
|
|
@@ -155,8 +158,10 @@ export declare class ChristianityGameComponent {
|
|
|
155
158
|
protected selectedActionDisabled(): boolean;
|
|
156
159
|
protected canPlaceSelectedCharacter(): boolean;
|
|
157
160
|
protected canPlaceSelectedOffering(): boolean;
|
|
161
|
+
protected canPlaceSelectedPlace(): boolean;
|
|
158
162
|
protected isDraggingCharacter(): boolean;
|
|
159
163
|
protected isDraggingOffering(): boolean;
|
|
164
|
+
protected isDraggingPlace(): boolean;
|
|
160
165
|
protected startDraggingCard(cardId: string): void;
|
|
161
166
|
protected endDraggingCard(): void;
|
|
162
167
|
protected canDragAttacker(card: ChristianityCharacterInstance): boolean;
|
|
@@ -164,6 +169,8 @@ export declare class ChristianityGameComponent {
|
|
|
164
169
|
protected endDraggingAttacker(): void;
|
|
165
170
|
protected dropOnBattleSlot(event: CdkDragDrop<number, unknown, string>, slotIndex: number): void;
|
|
166
171
|
protected dropOnOfferings(event: CdkDragDrop<unknown, unknown, string>): void;
|
|
172
|
+
protected dropOnPlace(event: CdkDragDrop<unknown, unknown, string>): void;
|
|
173
|
+
protected playSelectedPlaceOrInspect(): void;
|
|
167
174
|
protected dropOnOpponentCharacter(event: CdkDragDrop<unknown, unknown, string>, target: ChristianityCharacterInstance): void;
|
|
168
175
|
protected dropOnOpponentLeader(event: CdkDragDrop<unknown, unknown, string>): void;
|
|
169
176
|
private isValidAttackerInstance;
|
|
@@ -194,6 +201,7 @@ export declare class ChristianityGameComponent {
|
|
|
194
201
|
protected resetPreviewTilt(): void;
|
|
195
202
|
private pushImpactEvent;
|
|
196
203
|
private pushImpactEvents;
|
|
204
|
+
private triggerHistoryPulse;
|
|
197
205
|
private clearBotTurn;
|
|
198
206
|
private scheduleBotTurnIfNeeded;
|
|
199
207
|
private runTutorialBotTurn;
|
|
@@ -102,7 +102,6 @@ export interface ChessimalsChallengeRun {
|
|
|
102
102
|
currentStreak: number;
|
|
103
103
|
botLadder: string[];
|
|
104
104
|
roundResults: ChessimalsChallengeRoundResult[];
|
|
105
|
-
activeGame?: ChessimalsGameState;
|
|
106
105
|
startedAt: string;
|
|
107
106
|
updatedAt: string;
|
|
108
107
|
finishedAt?: string;
|
package/lib/version.d.ts
CHANGED