valtech-components 4.0.509 → 4.0.510
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/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/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 +151 -67
- 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/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.510";
|
|
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;
|
|
@@ -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';
|