valtech-components 4.0.478 → 4.0.479
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 +16 -109
- package/esm2022/lib/components/organisms/mini-games/chessimals-game.component.mjs +87 -20
- package/esm2022/lib/components/organisms/mini-games/memory-game.component.mjs +9 -18
- package/esm2022/lib/components/organisms/mini-games/mini-games.i18n.mjs +11 -275
- 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 +138 -3023
- 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 +5 -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 -131
- 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-card.component.mjs +0 -268
- package/esm2022/lib/components/organisms/mini-games/christianity-game.component.mjs +0 -2253
- package/esm2022/lib/directives/light-ripple.directive.mjs +0 -57
- package/lib/components/organisms/mini-games/christianity-card.component.d.ts +0 -46
- package/lib/components/organisms/mini-games/christianity-game.component.d.ts +0 -177
- package/lib/directives/light-ripple.directive.d.ts +0 -8
- package/src/lib/assets/games/christianity/card-symbol.svg +0 -51
- package/src/lib/assets/games/christianity/card-template-reference/front.html +0 -114
- package/src/lib/assets/games/christianity/card-template-reference/front.style.css +0 -352
- package/src/lib/assets/games/christianity/data/01-genesis.bible-reference-suggestions.csv +0 -191
- package/src/lib/assets/games/christianity/data/01-genesis.bible-verses.nbv-open.csv +0 -170
- package/src/lib/assets/games/christianity/data/01-genesis.cards.csv +0 -281
- package/src/lib/assets/games/christianity/data/01-genesis.cards.i18n.csv +0 -281
- package/src/lib/assets/games/christianity/data/01-genesis.cards.json +0 -16453
- package/src/lib/assets/games/christianity/data/01-genesis.unassigned-effects.csv +0 -49
- package/src/lib/assets/games/christianity/data/README.md +0 -40
- package/src/lib/assets/games/christianity/data/data-con-habilides.csv +0 -273
- package/src/lib/assets/games/christianity/data/habilidades-por-tipo.xlsx +0 -0
- package/src/lib/assets/games/christianity/data/listado-edicion.csv +0 -281
- package/src/lib/assets/games/christianity/editions/1/cards/.gitkeep +0 -1
- package/src/lib/assets/games/christianity/editions/1/cards/PLACEHOLDER.png +0 -0
- package/src/lib/assets/games/christianity/editions/README.md +0 -34
- package/src/lib/assets/games/christianity/icons/1-icon.png +0 -0
- package/src/lib/assets/games/christianity/icons/action.png +0 -0
- package/src/lib/assets/games/christianity/icons/character.png +0 -0
- package/src/lib/assets/games/christianity/icons/event.png +0 -0
- package/src/lib/assets/games/christianity/icons/leader.png +0 -0
- package/src/lib/assets/games/christianity/icons/offering.png +0 -0
- package/src/lib/assets/games/christianity/icons/place.png +0 -0
- package/src/lib/assets/games/christianity/icons/tool.png +0 -0
- package/src/lib/assets/games/christianity/icons/wisdom.png +0 -0
- package/src/lib/assets/games/christianity/sources/README.md +0 -16
- package/src/lib/assets/games/christianity/sources/spaonbv_vpl.txt +0 -29102
- package/src/lib/assets/games/christianity/sources/spaonbv_vpl.xml +0 -29104
- package/src/lib/assets/games/christianity/spaonbv.txt +0 -52
|
@@ -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;
|
|
@@ -97,6 +97,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
97
97
|
private moveEffectClearTimer;
|
|
98
98
|
private scorePopClearTimer;
|
|
99
99
|
private powerUnlockTimer;
|
|
100
|
+
private challengeIntroTimer;
|
|
100
101
|
private turnTimerInterval;
|
|
101
102
|
private turnTimerKey;
|
|
102
103
|
private turnTimerDeadline;
|
|
@@ -115,7 +116,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
115
116
|
readonly botProfiles: ChessimalsBotProfile[];
|
|
116
117
|
readonly challengeLadder: ChessimalsChallengeBot[];
|
|
117
118
|
readonly animals: ChessimalsAnimalView[];
|
|
118
|
-
readonly valtechComponentsVersion = "4.0.
|
|
119
|
+
readonly valtechComponentsVersion = "4.0.479";
|
|
119
120
|
readonly screen: import("@angular/core").WritableSignal<"home" | "game">;
|
|
120
121
|
readonly selectedBoardSize: import("@angular/core").WritableSignal<ChessimalsBoardSize>;
|
|
121
122
|
readonly selectedLocalMode: import("@angular/core").WritableSignal<ChessimalsLocalMode>;
|
|
@@ -132,6 +133,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
132
133
|
readonly challengeLastBot: import("@angular/core").WritableSignal<ChessimalsChallengeBot>;
|
|
133
134
|
readonly challengeLastRoundStats: import("@angular/core").WritableSignal<ChessimalsChallengeRoundStats>;
|
|
134
135
|
readonly challengeNewRecord: import("@angular/core").WritableSignal<boolean>;
|
|
136
|
+
readonly challengeIntroVisible: import("@angular/core").WritableSignal<boolean>;
|
|
135
137
|
readonly turnSecondsRemaining: import("@angular/core").WritableSignal<number>;
|
|
136
138
|
readonly selectedPieceId: import("@angular/core").WritableSignal<string>;
|
|
137
139
|
readonly selectedAnimal: import("@angular/core").WritableSignal<ChessimalsAnimalType>;
|
|
@@ -149,7 +151,6 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
149
151
|
readonly powerCallout: import("@angular/core").Signal<ChessimalsPowerCalloutView>;
|
|
150
152
|
readonly botThinking: import("@angular/core").WritableSignal<boolean>;
|
|
151
153
|
readonly confirmAction: import("@angular/core").WritableSignal<ChessimalsConfirmAction>;
|
|
152
|
-
private readonly confirmedAction;
|
|
153
154
|
readonly onlineJoinCode: import("@angular/core").WritableSignal<string>;
|
|
154
155
|
readonly onlineLoading: import("@angular/core").WritableSignal<boolean>;
|
|
155
156
|
readonly onlineAction: import("@angular/core").WritableSignal<"create" | "join" | "accept" | "reject">;
|
|
@@ -278,7 +279,6 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
278
279
|
requestChangeGame(): void;
|
|
279
280
|
requestResign(): void;
|
|
280
281
|
closeConfirmModal(): void;
|
|
281
|
-
handleConfirmModalDismissed(): void;
|
|
282
282
|
confirmPendingAction(token?: string): void;
|
|
283
283
|
private resignGame;
|
|
284
284
|
openRulesModal(): void;
|
|
@@ -407,6 +407,8 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
407
407
|
challengeRunLine(run: ChessimalsChallengeRun): string;
|
|
408
408
|
isChallengeActive(): boolean;
|
|
409
409
|
shouldShowChallengeInGamePanel(): boolean;
|
|
410
|
+
showChallengeIntro(): void;
|
|
411
|
+
dismissChallengeIntro(): void;
|
|
410
412
|
challengeLiveAvatar(): string;
|
|
411
413
|
challengeLiveRivalName(): string;
|
|
412
414
|
challengeLiveRivalLine(): string;
|
|
@@ -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;
|
|
@@ -247,133 +247,3 @@ export interface ChessimalsGameState {
|
|
|
247
247
|
moveHistory?: ChessimalsMoveHistoryEntry[];
|
|
248
248
|
online?: ChessimalsOnlineState;
|
|
249
249
|
}
|
|
250
|
-
export type ChristianitySeat = 'P1' | 'P2';
|
|
251
|
-
export type ChristianityGameStatus = 'in_progress' | 'finished';
|
|
252
|
-
export type ChristianityGameMode = 'solo_bot' | 'two_player' | 'local_pass';
|
|
253
|
-
export type ChristianityCardType = 'action' | 'character' | 'event' | 'leader' | 'offering' | 'place' | 'tool' | 'wisdom';
|
|
254
|
-
export type ChristianityCardRarity = 'normal' | 'uncommon' | 'rare' | 'legendary';
|
|
255
|
-
export interface ChristianityCardAbility {
|
|
256
|
-
name?: string;
|
|
257
|
-
text?: string;
|
|
258
|
-
}
|
|
259
|
-
export interface ChristianityCardTranslation {
|
|
260
|
-
name?: string;
|
|
261
|
-
fullName?: string;
|
|
262
|
-
verseText?: string;
|
|
263
|
-
scripture?: string;
|
|
264
|
-
abilityName?: string;
|
|
265
|
-
abilityText?: string;
|
|
266
|
-
abilities?: ChristianityCardAbility[];
|
|
267
|
-
}
|
|
268
|
-
export interface ChristianityCardBibleReference {
|
|
269
|
-
book?: string;
|
|
270
|
-
chapter?: number;
|
|
271
|
-
reference?: string;
|
|
272
|
-
version?: string;
|
|
273
|
-
text?: string;
|
|
274
|
-
}
|
|
275
|
-
export interface ChristianityCardArt {
|
|
276
|
-
legend?: string;
|
|
277
|
-
size?: number;
|
|
278
|
-
positionX?: number;
|
|
279
|
-
positionY?: number;
|
|
280
|
-
imagePath?: string;
|
|
281
|
-
imageUrl?: string;
|
|
282
|
-
mimeType?: string;
|
|
283
|
-
width?: number;
|
|
284
|
-
height?: number;
|
|
285
|
-
source?: string;
|
|
286
|
-
model?: string;
|
|
287
|
-
artistCredit?: string;
|
|
288
|
-
promptId?: string;
|
|
289
|
-
status?: string;
|
|
290
|
-
}
|
|
291
|
-
export interface ChristianityCardDefinition {
|
|
292
|
-
id: string;
|
|
293
|
-
sourceId?: number;
|
|
294
|
-
editionNumber?: number;
|
|
295
|
-
editionIcon?: string;
|
|
296
|
-
name: string;
|
|
297
|
-
fullName?: string;
|
|
298
|
-
type: ChristianityCardType;
|
|
299
|
-
cost?: number;
|
|
300
|
-
offeringValue?: number;
|
|
301
|
-
attack?: number;
|
|
302
|
-
life?: number;
|
|
303
|
-
leaderLife?: number;
|
|
304
|
-
legacyRestriction?: number;
|
|
305
|
-
abilityName?: string;
|
|
306
|
-
abilityText?: string;
|
|
307
|
-
abilityCost?: number;
|
|
308
|
-
abilities?: ChristianityCardAbility[];
|
|
309
|
-
strategy?: string;
|
|
310
|
-
power?: string;
|
|
311
|
-
bible?: ChristianityCardBibleReference;
|
|
312
|
-
art?: ChristianityCardArt;
|
|
313
|
-
imageUrl?: string;
|
|
314
|
-
verseText?: string;
|
|
315
|
-
scripture?: string;
|
|
316
|
-
edition?: string;
|
|
317
|
-
collectorNumber?: string;
|
|
318
|
-
editionSize?: number;
|
|
319
|
-
copyCount?: number;
|
|
320
|
-
author?: string;
|
|
321
|
-
year?: string;
|
|
322
|
-
rarity?: ChristianityCardRarity;
|
|
323
|
-
frontTemplate?: string;
|
|
324
|
-
backTemplate?: string;
|
|
325
|
-
i18n?: Record<string, ChristianityCardTranslation>;
|
|
326
|
-
status?: string;
|
|
327
|
-
sourceNotes?: string;
|
|
328
|
-
}
|
|
329
|
-
export interface ChristianityCharacterInstance {
|
|
330
|
-
instanceId: string;
|
|
331
|
-
cardId: string;
|
|
332
|
-
name: string;
|
|
333
|
-
owner: ChristianitySeat;
|
|
334
|
-
controller: ChristianitySeat;
|
|
335
|
-
slot?: number;
|
|
336
|
-
attack: number;
|
|
337
|
-
currentHp: number;
|
|
338
|
-
maxHp: number;
|
|
339
|
-
canAttack: boolean;
|
|
340
|
-
}
|
|
341
|
-
export interface ChristianityOfferingInstance {
|
|
342
|
-
instanceId: string;
|
|
343
|
-
cardId: string;
|
|
344
|
-
name: string;
|
|
345
|
-
owner: ChristianitySeat;
|
|
346
|
-
ready: boolean;
|
|
347
|
-
value: number;
|
|
348
|
-
abilityName?: string;
|
|
349
|
-
abilityText?: string;
|
|
350
|
-
abilityCost?: number;
|
|
351
|
-
}
|
|
352
|
-
export interface ChristianityPlayerState {
|
|
353
|
-
seat: ChristianitySeat;
|
|
354
|
-
displayName: string;
|
|
355
|
-
avatar?: string;
|
|
356
|
-
avatarColor?: string;
|
|
357
|
-
leaderCardId?: string;
|
|
358
|
-
leaderName: string;
|
|
359
|
-
leaderHp: number;
|
|
360
|
-
leaderMaxHp: number;
|
|
361
|
-
offerings: ChristianityOfferingInstance[];
|
|
362
|
-
offeringPlayedThisTurn: boolean;
|
|
363
|
-
hand?: string[];
|
|
364
|
-
handCount?: number;
|
|
365
|
-
battleZone: ChristianityCharacterInstance[];
|
|
366
|
-
}
|
|
367
|
-
export interface ChristianityGameState {
|
|
368
|
-
gameId: string;
|
|
369
|
-
status: ChristianityGameStatus;
|
|
370
|
-
mode: ChristianityGameMode;
|
|
371
|
-
turnOwner: ChristianitySeat;
|
|
372
|
-
revision: number;
|
|
373
|
-
turnCount: number;
|
|
374
|
-
matchScore: Record<ChristianitySeat, number>;
|
|
375
|
-
sharedDeck: string[];
|
|
376
|
-
historyZone: string[];
|
|
377
|
-
players: Record<ChristianitySeat, ChristianityPlayerState>;
|
|
378
|
-
log: string[];
|
|
379
|
-
}
|
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.479",
|
|
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';
|