valtech-components 4.0.455 → 4.0.457
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-engine.mjs +29 -107
- package/esm2022/lib/components/organisms/mini-games/chessimals-game.component.mjs +9 -18
- package/esm2022/lib/components/organisms/mini-games/memory-game.component.mjs +9 -18
- package/esm2022/lib/components/organisms/mini-games/mini-games.i18n.mjs +9 -159
- 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 +71 -2116
- 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-game.component.d.ts +1 -3
- 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 -1731
- package/esm2022/lib/directives/light-ripple.directive.mjs +0 -57
- package/lib/components/organisms/mini-games/christianity-game.component.d.ts +0 -113
- package/lib/directives/light-ripple.directive.d.ts +0 -8
- package/src/lib/assets/games/christianity/card-symbol.svg +0 -51
|
@@ -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;
|
|
@@ -72,7 +72,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
72
72
|
readonly botProfiles: ChessimalsBotProfile[];
|
|
73
73
|
readonly challengeLadder: ChessimalsChallengeBot[];
|
|
74
74
|
readonly animals: ChessimalsAnimalView[];
|
|
75
|
-
readonly valtechComponentsVersion = "4.0.
|
|
75
|
+
readonly valtechComponentsVersion = "4.0.457";
|
|
76
76
|
readonly screen: import("@angular/core").WritableSignal<"home" | "game">;
|
|
77
77
|
readonly selectedBoardSize: import("@angular/core").WritableSignal<ChessimalsBoardSize>;
|
|
78
78
|
readonly selectedLocalMode: import("@angular/core").WritableSignal<ChessimalsLocalMode>;
|
|
@@ -102,7 +102,6 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
102
102
|
readonly moveTrail: import("@angular/core").Signal<ChessimalsMoveTrailView>;
|
|
103
103
|
readonly botThinking: import("@angular/core").WritableSignal<boolean>;
|
|
104
104
|
readonly confirmAction: import("@angular/core").WritableSignal<ChessimalsConfirmAction>;
|
|
105
|
-
private readonly confirmedAction;
|
|
106
105
|
readonly onlineJoinCode: import("@angular/core").WritableSignal<string>;
|
|
107
106
|
readonly onlineLoading: import("@angular/core").WritableSignal<boolean>;
|
|
108
107
|
readonly onlineAction: import("@angular/core").WritableSignal<"create" | "join" | "accept" | "reject">;
|
|
@@ -226,7 +225,6 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
226
225
|
requestChangeGame(): void;
|
|
227
226
|
requestResign(): void;
|
|
228
227
|
closeConfirmModal(): void;
|
|
229
|
-
handleConfirmModalDismissed(): void;
|
|
230
228
|
confirmPendingAction(token?: string): void;
|
|
231
229
|
private resignGame;
|
|
232
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.457",
|
|
4
4
|
"private": false,
|
|
5
5
|
"bin": {
|
|
6
6
|
"valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"
|
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@angular/cdk": "^18.2.14",
|
|
43
42
|
"@capacitor/app-launcher": "^6.0.4",
|
|
44
43
|
"@capacitor/browser": "^6.0.3",
|
|
45
44
|
"@zxing/browser": "^0.2.0",
|
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';
|