valtech-components 4.0.443 → 4.0.444
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 +18 -9
- package/esm2022/lib/components/organisms/mini-games/chessimals-engine.mjs +109 -16
- package/esm2022/lib/components/organisms/mini-games/chessimals-game.component.mjs +18 -9
- package/esm2022/lib/components/organisms/mini-games/christianity-game.component.mjs +1531 -0
- package/esm2022/lib/components/organisms/mini-games/memory-game.component.mjs +18 -9
- package/esm2022/lib/components/organisms/mini-games/mini-games.i18n.mjs +149 -9
- package/esm2022/lib/components/organisms/mini-games/simon-game.component.mjs +18 -9
- package/esm2022/lib/components/organisms/mini-games/types.mjs +1 -1
- package/esm2022/lib/directives/light-ripple.directive.mjs +57 -0
- package/esm2022/lib/version.mjs +2 -2
- package/esm2022/mini-games/public-api.mjs +34 -2
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/valtech-components-mini-games.mjs +34 -2
- package/fesm2022/valtech-components-mini-games.mjs.map +1 -1
- package/fesm2022/valtech-components.mjs +1908 -58
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/mini-games/bubble-blitz-game.component.d.ts +2 -0
- package/lib/components/organisms/mini-games/chessimals-game.component.d.ts +3 -1
- package/lib/components/organisms/mini-games/christianity-game.component.d.ts +103 -0
- package/lib/components/organisms/mini-games/memory-game.component.d.ts +2 -0
- package/lib/components/organisms/mini-games/simon-game.component.d.ts +2 -0
- package/lib/components/organisms/mini-games/types.d.ts +74 -1
- package/lib/directives/light-ripple.directive.d.ts +8 -0
- package/lib/version.d.ts +1 -1
- package/mini-games/public-api.d.ts +4 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -44,6 +44,7 @@ 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;
|
|
47
48
|
readonly config: import("@angular/core").Signal<BubbleBlitzModeConfig>;
|
|
48
49
|
readonly feverReady: import("@angular/core").Signal<boolean>;
|
|
49
50
|
readonly feverProgress: import("@angular/core").Signal<number>;
|
|
@@ -73,6 +74,7 @@ export declare class BubbleBlitzGameComponent implements OnDestroy {
|
|
|
73
74
|
requestChangeMode(): void;
|
|
74
75
|
requestChangeGame(): void;
|
|
75
76
|
closeConfirmModal(): void;
|
|
77
|
+
handleConfirmModalDismissed(): void;
|
|
76
78
|
confirmPendingAction(token?: string): void;
|
|
77
79
|
private startTimer;
|
|
78
80
|
private stopTimer;
|
|
@@ -71,7 +71,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
71
71
|
readonly botProfiles: ChessimalsBotProfile[];
|
|
72
72
|
readonly challengeLadder: ChessimalsChallengeBot[];
|
|
73
73
|
readonly animals: ChessimalsAnimalView[];
|
|
74
|
-
readonly valtechComponentsVersion = "4.0.
|
|
74
|
+
readonly valtechComponentsVersion = "4.0.444";
|
|
75
75
|
readonly screen: import("@angular/core").WritableSignal<"home" | "game">;
|
|
76
76
|
readonly selectedBoardSize: import("@angular/core").WritableSignal<ChessimalsBoardSize>;
|
|
77
77
|
readonly selectedLocalMode: import("@angular/core").WritableSignal<ChessimalsLocalMode>;
|
|
@@ -100,6 +100,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
100
100
|
readonly moveTrail: import("@angular/core").Signal<ChessimalsMoveTrailView>;
|
|
101
101
|
readonly botThinking: import("@angular/core").WritableSignal<boolean>;
|
|
102
102
|
readonly confirmAction: import("@angular/core").WritableSignal<ChessimalsConfirmAction>;
|
|
103
|
+
private readonly confirmedAction;
|
|
103
104
|
readonly onlineJoinCode: import("@angular/core").WritableSignal<string>;
|
|
104
105
|
readonly onlineLoading: import("@angular/core").WritableSignal<boolean>;
|
|
105
106
|
readonly onlineAction: import("@angular/core").WritableSignal<"create" | "join" | "accept" | "reject">;
|
|
@@ -220,6 +221,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
220
221
|
requestChangeGame(): void;
|
|
221
222
|
requestResign(): void;
|
|
222
223
|
closeConfirmModal(): void;
|
|
224
|
+
handleConfirmModalDismissed(): void;
|
|
223
225
|
confirmPendingAction(token?: string): void;
|
|
224
226
|
private resignGame;
|
|
225
227
|
openRulesModal(): void;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { CdkDrag, CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
+
import { ChristianityCardDefinition, ChristianityCharacterInstance, ChristianityGameState, ChristianityOfferingInstance, ChristianityPlayerState, ChristianitySeat } from './types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
interface ChristianityCardPreview {
|
|
5
|
+
title: string;
|
|
6
|
+
eyebrow: string;
|
|
7
|
+
meta: string;
|
|
8
|
+
body: string;
|
|
9
|
+
cardId?: string;
|
|
10
|
+
source?: 'hand' | 'board' | 'pile';
|
|
11
|
+
}
|
|
12
|
+
interface ChristianityPreviewTilt {
|
|
13
|
+
rotateX: number;
|
|
14
|
+
rotateY: number;
|
|
15
|
+
shiftX: number;
|
|
16
|
+
shiftY: number;
|
|
17
|
+
}
|
|
18
|
+
export declare class ChristianityGameComponent {
|
|
19
|
+
private i18n;
|
|
20
|
+
protected readonly game: import("@angular/core").WritableSignal<ChristianityGameState>;
|
|
21
|
+
protected readonly selectedHandCard: import("@angular/core").WritableSignal<string>;
|
|
22
|
+
protected readonly selectedAttacker: import("@angular/core").WritableSignal<ChristianityCharacterInstance>;
|
|
23
|
+
protected readonly selectedPreview: import("@angular/core").WritableSignal<ChristianityCardPreview>;
|
|
24
|
+
protected readonly previewTilt: import("@angular/core").WritableSignal<ChristianityPreviewTilt>;
|
|
25
|
+
protected readonly hoveredHandIndex: import("@angular/core").WritableSignal<number>;
|
|
26
|
+
protected readonly draggingCardId: import("@angular/core").WritableSignal<string>;
|
|
27
|
+
protected readonly showHistory: import("@angular/core").WritableSignal<boolean>;
|
|
28
|
+
protected readonly offeringsSeat: import("@angular/core").WritableSignal<ChristianitySeat>;
|
|
29
|
+
protected readonly canDropOnBattleSlot: (drag: CdkDrag<string>) => boolean;
|
|
30
|
+
protected readonly canDropOnOfferings: (drag: CdkDrag<string>) => boolean;
|
|
31
|
+
protected readonly player: import("@angular/core").Signal<ChristianityPlayerState>;
|
|
32
|
+
protected readonly opponent: import("@angular/core").Signal<ChristianityPlayerState>;
|
|
33
|
+
protected readonly currentPlayer: import("@angular/core").Signal<ChristianityPlayerState>;
|
|
34
|
+
protected readonly isOwnTurn: import("@angular/core").Signal<boolean>;
|
|
35
|
+
protected readonly hasOpponentGuards: import("@angular/core").Signal<boolean>;
|
|
36
|
+
protected readonly opponentHandCount: import("@angular/core").Signal<number>;
|
|
37
|
+
protected readonly selectedCardDefinition: import("@angular/core").Signal<ChristianityCardDefinition>;
|
|
38
|
+
protected readonly selectedPreviewCard: import("@angular/core").Signal<ChristianityCardDefinition>;
|
|
39
|
+
protected readonly statusText: import("@angular/core").Signal<string>;
|
|
40
|
+
constructor();
|
|
41
|
+
protected t(key: string): string;
|
|
42
|
+
protected cardDefinition(cardId: string): ChristianityCardDefinition;
|
|
43
|
+
protected cardTypeLabel(card: ChristianityCardDefinition): string;
|
|
44
|
+
protected battleSlots(seat: ChristianitySeat): Array<{
|
|
45
|
+
trackId: string;
|
|
46
|
+
card?: ChristianityCharacterInstance;
|
|
47
|
+
}>;
|
|
48
|
+
protected battleSlotDropId(index: number): string;
|
|
49
|
+
protected dropTargetIds(): string[];
|
|
50
|
+
protected hiddenHandCards(count: number): unknown[];
|
|
51
|
+
protected fanTransform(index: number, total: number, opponent: boolean): string;
|
|
52
|
+
protected handCardZIndex(index: number): number;
|
|
53
|
+
protected setHoveredHandIndex(index: number): void;
|
|
54
|
+
protected clearHoveredHandIndex(): void;
|
|
55
|
+
protected releaseHoveredHand(event: PointerEvent): void;
|
|
56
|
+
private handWaveLift;
|
|
57
|
+
private handWaveScale;
|
|
58
|
+
protected readyOfferings(player: ChristianityPlayerState): number;
|
|
59
|
+
protected totalOfferings(player: ChristianityPlayerState): number;
|
|
60
|
+
protected canPlay(card: ChristianityCardDefinition): boolean;
|
|
61
|
+
protected canPlaySelected(): boolean;
|
|
62
|
+
protected selectedActionLabel(): string;
|
|
63
|
+
protected selectedActionDisabled(): boolean;
|
|
64
|
+
protected previewActionDisabled(): boolean;
|
|
65
|
+
protected canPlaceSelectedCharacter(): boolean;
|
|
66
|
+
protected canPlaceSelectedOffering(): boolean;
|
|
67
|
+
protected isDraggingCharacter(): boolean;
|
|
68
|
+
protected isDraggingOffering(): boolean;
|
|
69
|
+
protected startDraggingCard(cardId: string): void;
|
|
70
|
+
protected endDraggingCard(): void;
|
|
71
|
+
protected dropOnBattleSlot(event: CdkDragDrop<number, unknown, string>, slotIndex: number): void;
|
|
72
|
+
protected dropOnOfferings(event: CdkDragDrop<unknown, unknown, string>): void;
|
|
73
|
+
protected selectHandCard(cardId: string): void;
|
|
74
|
+
protected playSelectedCard(slotIndex?: number): void;
|
|
75
|
+
protected playCardFromHand(cardId: string, slotIndex?: number): void;
|
|
76
|
+
protected playPreviewCard(): void;
|
|
77
|
+
protected handleOfferingPile(seat: ChristianitySeat): void;
|
|
78
|
+
protected selectAttacker(card: ChristianityCharacterInstance): void;
|
|
79
|
+
protected handleOpponentCharacter(card: ChristianityCharacterInstance): void;
|
|
80
|
+
protected handleOpponentLeader(): void;
|
|
81
|
+
protected attackLeader(): void;
|
|
82
|
+
protected attackCharacter(target: ChristianityCharacterInstance): void;
|
|
83
|
+
protected endTurn(): void;
|
|
84
|
+
protected resetMock(): void;
|
|
85
|
+
protected closePreview(): void;
|
|
86
|
+
protected openOfferings(seat: ChristianitySeat): void;
|
|
87
|
+
protected closeOfferings(): void;
|
|
88
|
+
protected tiltPreview(event: PointerEvent): void;
|
|
89
|
+
protected resetPreviewTilt(): void;
|
|
90
|
+
private cleanupDestroyed;
|
|
91
|
+
protected inspectLeader(seat: ChristianitySeat): void;
|
|
92
|
+
protected inspectOffering(offering: ChristianityOfferingInstance): void;
|
|
93
|
+
protected canUseOfferingAbility(offering: ChristianityOfferingInstance, seat: ChristianitySeat): boolean;
|
|
94
|
+
protected useOfferingAbility(offering: ChristianityOfferingInstance, seat: ChristianitySeat): void;
|
|
95
|
+
protected inspectDeck(): void;
|
|
96
|
+
protected inspectHandCard(cardId: string, fromHand?: boolean): void;
|
|
97
|
+
protected inspectHistoryCard(cardId: string): void;
|
|
98
|
+
private inspectCharacter;
|
|
99
|
+
private spendOfferings;
|
|
100
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChristianityGameComponent, never>;
|
|
101
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChristianityGameComponent, "val-christianity-game", never, {}, {}, never, never, true, never>;
|
|
102
|
+
}
|
|
103
|
+
export {};
|
|
@@ -41,6 +41,7 @@ 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;
|
|
44
45
|
private timer?;
|
|
45
46
|
private firstPick?;
|
|
46
47
|
readonly profileConfig: import("@angular/core").Signal<{
|
|
@@ -75,6 +76,7 @@ export declare class MemoryGameComponent implements OnDestroy {
|
|
|
75
76
|
requestChangeMode(): void;
|
|
76
77
|
requestChangeGame(): void;
|
|
77
78
|
closeConfirmModal(): void;
|
|
79
|
+
handleConfirmModalDismissed(): void;
|
|
78
80
|
confirmPendingAction(token?: string): void;
|
|
79
81
|
flip(card: MemoryGameCard): void;
|
|
80
82
|
private startTimer;
|
|
@@ -32,6 +32,7 @@ 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;
|
|
35
36
|
readonly modeConfig: import("@angular/core").Signal<SimonModeConfig>;
|
|
36
37
|
readonly bestRound: import("@angular/core").Signal<number>;
|
|
37
38
|
readonly modeLeaderboard: import("@angular/core").Signal<SimonLeaderboardEntry[]>;
|
|
@@ -52,6 +53,7 @@ export declare class SimonGameComponent implements OnDestroy {
|
|
|
52
53
|
requestChangeMode(): void;
|
|
53
54
|
requestChangeGame(): void;
|
|
54
55
|
closeConfirmModal(): void;
|
|
56
|
+
handleConfirmModalDismissed(): void;
|
|
55
57
|
confirmPendingAction(token?: string): void;
|
|
56
58
|
tap(pad: SimonPad): void;
|
|
57
59
|
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' | 'oracle' | 'ambusher' | 'locksmith' | 'storm' | 'matriarch' | 'endgame';
|
|
56
56
|
export type ChessimalsGameStatus = 'waiting' | 'in_progress' | 'finished' | 'expired';
|
|
57
57
|
export interface ChessimalsBotProfile {
|
|
58
58
|
id: ChessimalsBotProfileId;
|
|
@@ -233,3 +233,76 @@ 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
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class LightRippleDirective {
|
|
3
|
+
private host;
|
|
4
|
+
private renderer;
|
|
5
|
+
createRipple(event: PointerEvent): void;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LightRippleDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LightRippleDirective, "[valLightRipple]", never, {}, {}, never, never, true, never>;
|
|
8
|
+
}
|
package/lib/version.d.ts
CHANGED
|
@@ -27,6 +27,10 @@ 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
|
+
}
|
|
30
34
|
export declare class ChessimalsOnlineGamePageComponent {
|
|
31
35
|
private readonly route;
|
|
32
36
|
readonly gameId: string;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './lib/version';
|
|
2
2
|
export * from './lib/directives/has-permission.directive';
|
|
3
|
+
export * from './lib/directives/light-ripple.directive';
|
|
3
4
|
export * from './lib/components/atoms/avatar/avatar.component';
|
|
4
5
|
export * from './lib/components/atoms/avatar/types';
|
|
5
6
|
export * from './lib/components/atoms/box/box.component';
|
|
@@ -340,6 +341,7 @@ export * from './lib/components/organisms/member-import-modal/member-import-moda
|
|
|
340
341
|
export * from './lib/components/organisms/mini-games/chessimals-engine';
|
|
341
342
|
export * from './lib/components/organisms/mini-games/chessimals-game.component';
|
|
342
343
|
export * from './lib/components/organisms/mini-games/chessimals-online.service';
|
|
344
|
+
export * from './lib/components/organisms/mini-games/christianity-game.component';
|
|
343
345
|
export * from './lib/components/organisms/mini-games/bubble-blitz-game.component';
|
|
344
346
|
export * from './lib/components/organisms/mini-games/memory-game.component';
|
|
345
347
|
export * from './lib/components/organisms/mini-games/mini-game-player-profile.service';
|