valtech-components 4.0.509 → 4.0.511
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 +31 -66
- package/esm2022/lib/components/organisms/mini-games/christianity-game.component.mjs +183 -32
- package/esm2022/lib/components/organisms/mini-games/mini-game-callout.component.mjs +62 -0
- package/esm2022/lib/components/organisms/mini-games/mini-game-score-pop.component.mjs +63 -0
- package/esm2022/lib/components/organisms/mini-games/mini-games.i18n.mjs +8 -4
- package/esm2022/lib/version.mjs +2 -2
- package/esm2022/mini-games/public-api.mjs +3 -1
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/valtech-components-mini-games.mjs +1 -0
- package/fesm2022/valtech-components-mini-games.mjs.map +1 -1
- package/fesm2022/valtech-components.mjs +338 -101
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/atoms/rights-footer/rights-footer.component.d.ts +1 -1
- package/lib/components/molecules/load-more/load-more.component.d.ts +1 -1
- package/lib/components/organisms/article/article.component.d.ts +2 -2
- package/lib/components/organisms/mini-games/chessimals-game.component.d.ts +6 -14
- package/lib/components/organisms/mini-games/christianity-game.component.d.ts +27 -1
- package/lib/components/organisms/mini-games/mini-game-callout.component.d.ts +19 -0
- package/lib/components/organisms/mini-games/mini-game-score-pop.component.d.ts +23 -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
|
@@ -43,7 +43,7 @@ export declare class RightsFooterComponent {
|
|
|
43
43
|
/**
|
|
44
44
|
* Computed helper for color prop in template.
|
|
45
45
|
*/
|
|
46
|
-
propsColor: import("@angular/core").Signal<"
|
|
46
|
+
propsColor: import("@angular/core").Signal<"success" | "warning" | "medium" | "primary" | "secondary" | "tertiary" | "danger" | "light" | "dark">;
|
|
47
47
|
/**
|
|
48
48
|
* Computed helper for withMargin prop in template.
|
|
49
49
|
*/
|
|
@@ -26,7 +26,7 @@ export declare class LoadMoreComponent {
|
|
|
26
26
|
readonly color: import("@angular/core").Signal<string>;
|
|
27
27
|
readonly fill: import("@angular/core").Signal<string>;
|
|
28
28
|
readonly shape: import("@angular/core").Signal<string>;
|
|
29
|
-
readonly size: import("@angular/core").Signal<"
|
|
29
|
+
readonly size: import("@angular/core").Signal<"default" | "small" | "large">;
|
|
30
30
|
readonly threshold: import("@angular/core").Signal<string>;
|
|
31
31
|
readonly label: import("@angular/core").Signal<string>;
|
|
32
32
|
private readonly _pendingComplete;
|
|
@@ -94,8 +94,8 @@ export declare class ArticleComponent implements OnInit {
|
|
|
94
94
|
contentInterpolation?: Record<string, string | number>;
|
|
95
95
|
icon?: import("valtech-components").IconMetada;
|
|
96
96
|
shape?: "round";
|
|
97
|
-
size?: "
|
|
98
|
-
fill?: "
|
|
97
|
+
size?: "default" | "small" | "large";
|
|
98
|
+
fill?: "default" | "outline" | "clear" | "solid";
|
|
99
99
|
type: "button" | "submit" | "reset";
|
|
100
100
|
token?: string;
|
|
101
101
|
ref?: any;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { MiniGameCalloutMetadata } from './mini-game-callout.component';
|
|
4
|
+
import { MiniGameScorePopMetadata } from './mini-game-score-pop.component';
|
|
3
5
|
import { ChessimalsAnimalType, ChessimalsBotDifficulty, ChessimalsBotProfile, ChessimalsBotProfileId, ChessimalsBoardSize, ChessimalsChallengeBot, ChessimalsChallengeRoundStats, ChessimalsChallengeRun, ChessimalsChallengeStats, ChessimalsGameState, ChessimalsHistoryEntry, ChessimalsLocalMode, ChessimalsMove, ChessimalsPiece, ChessimalsPlayerColor, ChessimalsPosition, ChessimalsStatsMode } from './types';
|
|
4
6
|
import { RangeInputMetadata, RangeValue } from '../../molecules/range-input/types';
|
|
5
7
|
import { ToggleInputMetadata } from '../../molecules/toggle-input/types';
|
|
@@ -41,13 +43,6 @@ interface ChessimalsChallengeTensionView {
|
|
|
41
43
|
icon: string;
|
|
42
44
|
critical: boolean;
|
|
43
45
|
}
|
|
44
|
-
interface ChessimalsPowerCalloutView {
|
|
45
|
-
title: string;
|
|
46
|
-
body: string;
|
|
47
|
-
impact: string;
|
|
48
|
-
animal: ChessimalsAnimalType;
|
|
49
|
-
capture: boolean;
|
|
50
|
-
}
|
|
51
46
|
interface ChessimalsAchievementView {
|
|
52
47
|
title: string;
|
|
53
48
|
body: string;
|
|
@@ -74,10 +69,6 @@ interface ChessimalsGameScoreView {
|
|
|
74
69
|
bestMove?: ChessimalsMoveScoreView;
|
|
75
70
|
score: number;
|
|
76
71
|
}
|
|
77
|
-
interface ChessimalsScorePopView extends ChessimalsMoveScoreView {
|
|
78
|
-
x: string;
|
|
79
|
-
y: string;
|
|
80
|
-
}
|
|
81
72
|
export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
82
73
|
private readonly i18n;
|
|
83
74
|
private readonly audio;
|
|
@@ -123,7 +114,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
123
114
|
readonly botProfiles: ChessimalsBotProfile[];
|
|
124
115
|
readonly challengeLadder: ChessimalsChallengeBot[];
|
|
125
116
|
readonly animals: ChessimalsAnimalView[];
|
|
126
|
-
readonly valtechComponentsVersion = "4.0.
|
|
117
|
+
readonly valtechComponentsVersion = "4.0.511";
|
|
127
118
|
readonly screen: import("@angular/core").WritableSignal<"home" | "challenge" | "path" | "game">;
|
|
128
119
|
readonly selectedBoardSize: import("@angular/core").WritableSignal<ChessimalsBoardSize>;
|
|
129
120
|
readonly selectedLocalMode: import("@angular/core").WritableSignal<ChessimalsLocalMode>;
|
|
@@ -151,10 +142,10 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
151
142
|
readonly isBoardOrienting: import("@angular/core").WritableSignal<boolean>;
|
|
152
143
|
readonly movingPiece: import("@angular/core").WritableSignal<ChessimalsMovingPieceView>;
|
|
153
144
|
readonly moveEffect: import("@angular/core").WritableSignal<ChessimalsMoveEffectView>;
|
|
154
|
-
readonly scorePop: import("@angular/core").WritableSignal<
|
|
145
|
+
readonly scorePop: import("@angular/core").WritableSignal<MiniGameScorePopMetadata>;
|
|
155
146
|
readonly powerUnlockPulse: import("@angular/core").WritableSignal<boolean>;
|
|
156
147
|
readonly moveTrail: import("@angular/core").Signal<ChessimalsMoveTrailView>;
|
|
157
|
-
readonly powerCallout: import("@angular/core").Signal<
|
|
148
|
+
readonly powerCallout: import("@angular/core").Signal<MiniGameCalloutMetadata>;
|
|
158
149
|
readonly botThinking: import("@angular/core").WritableSignal<boolean>;
|
|
159
150
|
readonly confirmAction: import("@angular/core").WritableSignal<ChessimalsConfirmAction>;
|
|
160
151
|
private readonly confirmedAction;
|
|
@@ -459,6 +450,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
459
450
|
private modeStatsResult;
|
|
460
451
|
animalLabel(type: ChessimalsAnimalType): string;
|
|
461
452
|
animalGlyph(type: ChessimalsAnimalType): string;
|
|
453
|
+
private powerCalloutTone;
|
|
462
454
|
canReviewPrevious(): boolean;
|
|
463
455
|
canReviewNext(): boolean;
|
|
464
456
|
reviewPreviousMove(): void;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { CdkDrag, CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
2
|
import { ChristianityCardRenderModel } from './christianity-card.component';
|
|
3
|
+
import { MiniGameCalloutMetadata } from './mini-game-callout.component';
|
|
4
|
+
import { MiniGameScorePopMetadata } from './mini-game-score-pop.component';
|
|
3
5
|
import { ChristianityCardDefinition, ChristianityCardType, ChristianityCharacterInstance, ChristianityGameState, ChristianityOfferingInstance, ChristianityPlayerState, ChristianitySeat } from './types';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
7
|
interface ChristianityCardPreview {
|
|
@@ -8,7 +10,7 @@ interface ChristianityCardPreview {
|
|
|
8
10
|
meta: string;
|
|
9
11
|
body: string;
|
|
10
12
|
cardId?: string;
|
|
11
|
-
source?: 'hand' | 'board' | 'pile' | 'history' | 'offerings';
|
|
13
|
+
source?: 'hand' | 'board' | 'pile' | 'history' | 'offerings' | 'gallery';
|
|
12
14
|
seat?: ChristianitySeat;
|
|
13
15
|
offeringInstanceId?: string;
|
|
14
16
|
}
|
|
@@ -42,6 +44,15 @@ interface ChristianityImpactEvent {
|
|
|
42
44
|
seat: ChristianitySeat;
|
|
43
45
|
target: 'leader' | 'battle' | 'offerings';
|
|
44
46
|
}
|
|
47
|
+
interface ChristianityCombatTrail {
|
|
48
|
+
fromX: string;
|
|
49
|
+
fromY: string;
|
|
50
|
+
midX: string;
|
|
51
|
+
midY: string;
|
|
52
|
+
length: string;
|
|
53
|
+
angle: string;
|
|
54
|
+
tone: 'attack' | 'leader' | 'character';
|
|
55
|
+
}
|
|
45
56
|
interface ChristianityCombatAnimation {
|
|
46
57
|
attackerInstanceId: string;
|
|
47
58
|
attackerSeat: ChristianitySeat;
|
|
@@ -62,6 +73,7 @@ export declare class ChristianityGameComponent {
|
|
|
62
73
|
private readonly impactTimers;
|
|
63
74
|
private combatResolutionTimer;
|
|
64
75
|
private combatClearTimer;
|
|
76
|
+
private combatTrailClearTimer;
|
|
65
77
|
protected readonly game: import("@angular/core").WritableSignal<ChristianityGameState>;
|
|
66
78
|
protected readonly screen: import("@angular/core").WritableSignal<ChristianityScreen>;
|
|
67
79
|
protected readonly catalogLoadState: import("@angular/core").WritableSignal<ChristianityCatalogLoadState>;
|
|
@@ -81,6 +93,7 @@ export declare class ChristianityGameComponent {
|
|
|
81
93
|
protected readonly offeringsSeat: import("@angular/core").WritableSignal<ChristianitySeat>;
|
|
82
94
|
protected readonly impactEvents: import("@angular/core").WritableSignal<ChristianityImpactEvent[]>;
|
|
83
95
|
protected readonly combatAnimation: import("@angular/core").WritableSignal<ChristianityCombatAnimation>;
|
|
96
|
+
protected readonly combatTrail: import("@angular/core").WritableSignal<ChristianityCombatTrail>;
|
|
84
97
|
protected readonly cardCatalog: import("@angular/core").WritableSignal<Record<string, ChristianityCardDefinition>>;
|
|
85
98
|
protected readonly allCatalogCards: import("@angular/core").WritableSignal<ChristianityCardDefinition[]>;
|
|
86
99
|
protected readonly catalogLoaded: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -112,14 +125,19 @@ export declare class ChristianityGameComponent {
|
|
|
112
125
|
} | {
|
|
113
126
|
kind: 'offering';
|
|
114
127
|
offering: ChristianityOfferingInstance;
|
|
128
|
+
} | {
|
|
129
|
+
kind: 'gallery';
|
|
130
|
+
cardId: string;
|
|
115
131
|
})[]>;
|
|
116
132
|
protected readonly canNavigatePreview: import("@angular/core").Signal<boolean>;
|
|
117
133
|
protected readonly previewPositionLabel: import("@angular/core").Signal<string>;
|
|
118
134
|
protected readonly previewAbilities: import("@angular/core").Signal<ChristianityPreviewAbility[]>;
|
|
119
135
|
protected readonly showPreviewAbilityTabs: import("@angular/core").Signal<boolean>;
|
|
136
|
+
protected readonly showPreviewAbilities: import("@angular/core").Signal<boolean>;
|
|
120
137
|
protected readonly canNavigatePreviewAbilities: import("@angular/core").Signal<boolean>;
|
|
121
138
|
protected readonly selectedPreviewAbilityPositionLabel: import("@angular/core").Signal<string>;
|
|
122
139
|
protected readonly selectedPreviewAbility: import("@angular/core").Signal<ChristianityPreviewAbility>;
|
|
140
|
+
protected readonly combatCallout: import("@angular/core").Signal<MiniGameCalloutMetadata>;
|
|
123
141
|
protected readonly splashStatusText: import("@angular/core").Signal<string>;
|
|
124
142
|
protected readonly startFeaturedCards: import("@angular/core").Signal<ChristianityCardDefinition[]>;
|
|
125
143
|
protected readonly futureModes: import("@angular/core").Signal<{
|
|
@@ -235,12 +253,20 @@ export declare class ChristianityGameComponent {
|
|
|
235
253
|
protected setGalleryType(event: Event): void;
|
|
236
254
|
protected tiltPreview(event: PointerEvent): void;
|
|
237
255
|
protected resetPreviewTilt(): void;
|
|
256
|
+
protected impactPopProps(impact: ChristianityImpactEvent): MiniGameScorePopMetadata;
|
|
257
|
+
private impactPosition;
|
|
258
|
+
private impactLabel;
|
|
259
|
+
private impactToneRgb;
|
|
238
260
|
private pushImpactEvent;
|
|
239
261
|
private pushImpactEvents;
|
|
262
|
+
private combatAnimationAttacker;
|
|
263
|
+
private combatAnimationTargetLabel;
|
|
240
264
|
protected isCombatAttacker(card: ChristianityCharacterInstance): boolean;
|
|
241
265
|
protected isCombatCharacterTarget(card: ChristianityCharacterInstance): boolean;
|
|
242
266
|
protected isCombatLeaderTarget(seat: ChristianitySeat): boolean;
|
|
243
267
|
private startCombatAnimation;
|
|
268
|
+
private createCombatTrail;
|
|
269
|
+
private combatAnchor;
|
|
244
270
|
private clearCombatTimers;
|
|
245
271
|
private triggerHistoryPulse;
|
|
246
272
|
private clearBotTurn;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export type MiniGameCalloutVariant = 'default' | 'capture' | 'success' | 'warning';
|
|
3
|
+
export interface MiniGameCalloutMetadata {
|
|
4
|
+
title: string;
|
|
5
|
+
body?: string;
|
|
6
|
+
impact?: string;
|
|
7
|
+
icon?: string;
|
|
8
|
+
toneRgb?: string;
|
|
9
|
+
durationMs?: number;
|
|
10
|
+
variant?: MiniGameCalloutVariant;
|
|
11
|
+
ariaLive?: 'off' | 'polite' | 'assertive';
|
|
12
|
+
}
|
|
13
|
+
export declare class MiniGameCalloutComponent {
|
|
14
|
+
readonly props: import("@angular/core").InputSignal<MiniGameCalloutMetadata>;
|
|
15
|
+
protected readonly toneRgb: import("@angular/core").Signal<string>;
|
|
16
|
+
protected readonly duration: import("@angular/core").Signal<string>;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MiniGameCalloutComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MiniGameCalloutComponent, "val-mini-game-callout", never, { "props": { "alias": "props"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export type MiniGameScorePopVariant = 'score' | 'capture' | 'combo' | 'bonus' | 'penalty';
|
|
3
|
+
export interface MiniGameScorePopMetadata {
|
|
4
|
+
score: string | number;
|
|
5
|
+
label: string;
|
|
6
|
+
detail?: string;
|
|
7
|
+
x: string;
|
|
8
|
+
y: string;
|
|
9
|
+
toneRgb?: string;
|
|
10
|
+
comboToneRgb?: string;
|
|
11
|
+
durationMs?: number;
|
|
12
|
+
variant?: MiniGameScorePopVariant;
|
|
13
|
+
ariaLive?: 'off' | 'polite' | 'assertive';
|
|
14
|
+
}
|
|
15
|
+
export declare class MiniGameScorePopComponent {
|
|
16
|
+
readonly props: import("@angular/core").InputSignal<MiniGameScorePopMetadata>;
|
|
17
|
+
protected readonly toneRgb: import("@angular/core").Signal<string>;
|
|
18
|
+
protected readonly comboToneRgb: import("@angular/core").Signal<string>;
|
|
19
|
+
protected readonly duration: import("@angular/core").Signal<string>;
|
|
20
|
+
protected readonly scoreLabel: import("@angular/core").Signal<string>;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MiniGameScorePopComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MiniGameScorePopComponent, "val-mini-game-score-pop", never, { "props": { "alias": "props"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
23
|
+
}
|
package/lib/version.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { MiniGameDefinition, PageContentMetadata } from 'valtech-components';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
export { MiniGameCalloutComponent } from 'valtech-components';
|
|
4
|
+
export type { MiniGameCalloutMetadata, MiniGameCalloutVariant } from 'valtech-components';
|
|
5
|
+
export { MiniGameScorePopComponent } from 'valtech-components';
|
|
6
|
+
export type { MiniGameScorePopMetadata, MiniGameScorePopVariant } from 'valtech-components';
|
|
3
7
|
export declare class MiniGamesPageComponent {
|
|
4
8
|
private readonly router;
|
|
5
9
|
private readonly i18n;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -345,6 +345,8 @@ export * from './lib/components/organisms/mini-games/christianity-rules';
|
|
|
345
345
|
export * from './lib/components/organisms/mini-games/christianity-game.component';
|
|
346
346
|
export * from './lib/components/organisms/mini-games/bubble-blitz-game.component';
|
|
347
347
|
export * from './lib/components/organisms/mini-games/memory-game.component';
|
|
348
|
+
export * from './lib/components/organisms/mini-games/mini-game-callout.component';
|
|
349
|
+
export * from './lib/components/organisms/mini-games/mini-game-score-pop.component';
|
|
348
350
|
export * from './lib/components/organisms/mini-games/mini-game-player-profile.service';
|
|
349
351
|
export * from './lib/components/organisms/mini-games/mini-games-menu.component';
|
|
350
352
|
export * from './lib/components/organisms/mini-games/retro-audio.service';
|