valtech-components 4.0.412 → 4.0.414
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-game.component.mjs +201 -34
- package/esm2022/lib/components/organisms/mini-games/mini-games.i18n.mjs +3 -1
- package/esm2022/lib/components/organisms/mini-games/retro-audio.service.mjs +56 -4
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +258 -37
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/mini-games/chessimals-game.component.d.ts +12 -2
- package/lib/components/organisms/mini-games/retro-audio.service.d.ts +6 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { ChessimalsAnimalType, ChessimalsBotDifficulty, ChessimalsBotProfile, ChessimalsBotProfileId, ChessimalsBoardSize, ChessimalsGameState, ChessimalsHistoryEntry, ChessimalsLocalMode, ChessimalsMove, ChessimalsPiece, ChessimalsPlayerColor, ChessimalsPosition } from './types';
|
|
4
|
-
import { RangeInputMetadata } from '../../molecules/range-input/types';
|
|
4
|
+
import { RangeInputMetadata, RangeValue } from '../../molecules/range-input/types';
|
|
5
5
|
import { ToggleInputMetadata } from '../../molecules/toggle-input/types';
|
|
6
6
|
import { UserAvatarMetadata } from '../../atoms/user-avatar/types';
|
|
7
7
|
import { ButtonMetadata } from '../../types';
|
|
@@ -145,6 +145,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
145
145
|
ngOnInit(): void;
|
|
146
146
|
protected t(key: string): string;
|
|
147
147
|
private shortUserId;
|
|
148
|
+
private rangeValueToNumber;
|
|
148
149
|
startGame(): void;
|
|
149
150
|
createOnlineGame(): Promise<void>;
|
|
150
151
|
joinOnlineGameByCode(): Promise<void>;
|
|
@@ -164,6 +165,8 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
164
165
|
closeRulesModal(): void;
|
|
165
166
|
openSettingsModal(): void;
|
|
166
167
|
closeSettingsModal(): void;
|
|
168
|
+
setMusicVolume(value: number | RangeValue): void;
|
|
169
|
+
setSfxVolume(value: number | RangeValue): void;
|
|
167
170
|
selectCell(position: ChessimalsPosition): void;
|
|
168
171
|
private animateMove;
|
|
169
172
|
private applyAnimatedMove;
|
|
@@ -204,9 +207,11 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
204
207
|
winnerDisplayName(): string;
|
|
205
208
|
winnerSideLabel(): string;
|
|
206
209
|
winnerInitials(): string;
|
|
210
|
+
winnerAvatarUrl(): string;
|
|
207
211
|
isCurrentPlayerVictory(): boolean;
|
|
208
212
|
isCurrentPlayerDefeat(): boolean;
|
|
209
213
|
private playerDisplayName;
|
|
214
|
+
private rematchOpponent;
|
|
210
215
|
modeChipLabel(): string;
|
|
211
216
|
turnTitle(): string;
|
|
212
217
|
normalizeGameId(value: string): string;
|
|
@@ -216,9 +221,14 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
216
221
|
canReviewPendingGuest(): boolean;
|
|
217
222
|
pendingGuestName(): string;
|
|
218
223
|
pendingGuestHandle(): string;
|
|
219
|
-
pendingGuestAvatar(): string;
|
|
220
224
|
pendingGuestAvatarUrl(): string;
|
|
225
|
+
pendingGuestInitials(): string;
|
|
221
226
|
pendingGuestAvatarProps(): UserAvatarMetadata;
|
|
227
|
+
rematchOpponentName(): string;
|
|
228
|
+
rematchOpponentHandle(): string;
|
|
229
|
+
rematchOpponentAvatarUrl(): string;
|
|
230
|
+
rematchOpponentInitials(): string;
|
|
231
|
+
rematchOpponentAvatarProps(): UserAvatarMetadata;
|
|
222
232
|
waitingTitle(): string;
|
|
223
233
|
waitingBody(): string;
|
|
224
234
|
acceptOnlineGuest(): Promise<void>;
|
|
@@ -12,6 +12,8 @@ export declare class RetroAudioService {
|
|
|
12
12
|
private readonly activeSamples;
|
|
13
13
|
private sampleMusic?;
|
|
14
14
|
private sampleMusicConfig?;
|
|
15
|
+
private sampleMusicSource?;
|
|
16
|
+
private sampleMusicGain?;
|
|
15
17
|
private pausedSampleMusic?;
|
|
16
18
|
private readonly defaultsReady;
|
|
17
19
|
readonly enabled: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -75,6 +77,10 @@ export declare class RetroAudioService {
|
|
|
75
77
|
private sequence;
|
|
76
78
|
private startSampleMusic;
|
|
77
79
|
private stopSampleMusic;
|
|
80
|
+
private applySampleMusicVolume;
|
|
81
|
+
private sampleMusicVolume;
|
|
82
|
+
private connectSampleMusic;
|
|
83
|
+
private disconnectSampleMusicGraph;
|
|
78
84
|
private tone;
|
|
79
85
|
private sweep;
|
|
80
86
|
private filteredNoise;
|
package/lib/version.d.ts
CHANGED