valtech-components 4.0.539 → 4.0.540
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/molecules/picker-v2/picker-v2.component.mjs +4 -8
- package/esm2022/lib/components/organisms/mini-games/bubble-blitz-game.component.mjs +3 -3
- package/esm2022/lib/components/organisms/mini-games/chessimals-challenge-progress.service.mjs +6 -45
- package/esm2022/lib/components/organisms/mini-games/chessimals-engine.mjs +1 -18
- package/esm2022/lib/components/organisms/mini-games/chessimals-game.component.mjs +811 -814
- package/esm2022/lib/components/organisms/mini-games/christianity-card.component.mjs +3 -3
- package/esm2022/lib/components/organisms/mini-games/christianity-game.component.mjs +15 -5
- package/esm2022/lib/components/organisms/mini-games/memory-game.component.mjs +3 -3
- package/esm2022/lib/components/organisms/mini-games/mini-games-menu.component.mjs +3 -3
- package/esm2022/lib/components/organisms/mini-games/mini-games.i18n.mjs +13 -97
- package/esm2022/lib/components/organisms/mini-games/retro-audio.service.mjs +1 -27
- package/esm2022/lib/components/organisms/mini-games/simon-game.component.mjs +3 -3
- package/esm2022/lib/components/organisms/mini-games/types.mjs +1 -1
- package/esm2022/lib/services/forms/form-schema-builder.service.mjs +1 -84
- package/esm2022/lib/services/forms/types.mjs +2 -8
- package/esm2022/lib/version.mjs +2 -2
- package/esm2022/mini-games/public-api.mjs +8 -2
- package/esm2022/public-api.mjs +1 -4
- package/fesm2022/valtech-components-mini-games.mjs +7 -1
- package/fesm2022/valtech-components-mini-games.mjs.map +1 -1
- package/fesm2022/valtech-components.mjs +845 -1109
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/molecules/picker-v2/picker-v2.component.d.ts +2 -2
- package/lib/components/organisms/mini-games/chessimals-challenge-progress.service.d.ts +0 -4
- package/lib/components/organisms/mini-games/chessimals-game.component.d.ts +1 -32
- package/lib/components/organisms/mini-games/christianity-game.component.d.ts +1 -0
- package/lib/components/organisms/mini-games/retro-audio.service.d.ts +0 -2
- package/lib/components/organisms/mini-games/types.d.ts +0 -2
- package/lib/services/forms/form-schema-builder.service.d.ts +1 -15
- package/lib/services/forms/types.d.ts +0 -4
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +0 -2
- package/esm2022/lib/components/organisms/bottom-nav/side-nav-adapter.mjs +0 -11
- package/lib/components/organisms/bottom-nav/side-nav-adapter.d.ts +0 -7
- package/src/lib/assets/games/README.md +0 -149
- package/src/lib/assets/games/chessimals/brand/README.md +0 -23
- package/src/lib/assets/games/chessimals/brand/chessimals-app-icon-192.png +0 -0
- package/src/lib/assets/games/chessimals/brand/chessimals-app-icon-512.png +0 -0
- package/src/lib/assets/games/chessimals/brand/chessimals-app-icon-capacitor.png +0 -0
- package/src/lib/assets/games/chessimals/brand/chessimals-app-icon.png +0 -0
- package/src/lib/assets/games/chessimals/brand/chessimals-emblem.png +0 -0
- package/src/lib/assets/games/chessimals/brand/chessimals-favicon.png +0 -0
- package/src/lib/assets/games/chessimals/brand/chessimals-wordmark.png +0 -0
- package/src/lib/assets/games/chessimals/challenge-avatars/ambusher.png +0 -0
- package/src/lib/assets/games/chessimals/challenge-avatars/endgame.png +0 -0
- package/src/lib/assets/games/chessimals/challenge-avatars/explorer.png +0 -0
- package/src/lib/assets/games/chessimals/challenge-avatars/guardian.png +0 -0
- package/src/lib/assets/games/chessimals/challenge-avatars/hunter.png +0 -0
- package/src/lib/assets/games/chessimals/challenge-avatars/impulsive.png +0 -0
- package/src/lib/assets/games/chessimals/challenge-avatars/jumper.png +0 -0
- package/src/lib/assets/games/chessimals/challenge-avatars/locksmith.png +0 -0
- package/src/lib/assets/games/chessimals/challenge-avatars/matriarch.png +0 -0
- package/src/lib/assets/games/chessimals/challenge-avatars/oracle.png +0 -0
- package/src/lib/assets/games/chessimals/challenge-avatars/predator.png +0 -0
- package/src/lib/assets/games/chessimals/challenge-avatars/runner.png +0 -0
- package/src/lib/assets/games/chessimals/challenge-avatars/sentinel.png +0 -0
- package/src/lib/assets/games/chessimals/challenge-avatars/sprinter.png +0 -0
- package/src/lib/assets/games/chessimals/challenge-avatars/storm.png +0 -0
- package/src/lib/assets/games/chessimals/challenge-avatars/strategist.png +0 -0
- package/src/lib/assets/games/chessimals/powers/README.md +0 -12
- package/src/lib/assets/games/chessimals/powers/bull-power.png +0 -0
- package/src/lib/assets/games/chessimals/powers/eagle-power.png +0 -0
- package/src/lib/assets/games/chessimals/powers/kangaroo-power.png +0 -0
- package/src/lib/assets/games/chessimals/powers/lion-power.png +0 -0
|
@@ -24,8 +24,8 @@ export declare class PickerV2Component {
|
|
|
24
24
|
selectionChange: EventEmitter<string>;
|
|
25
25
|
private host;
|
|
26
26
|
readonly open: import("@angular/core").WritableSignal<boolean>;
|
|
27
|
-
selectedOption()
|
|
28
|
-
displayText()
|
|
27
|
+
readonly selectedOption: import("@angular/core").Signal<PickerV2Option>;
|
|
28
|
+
readonly displayText: import("@angular/core").Signal<string>;
|
|
29
29
|
toggle(): void;
|
|
30
30
|
select(option: PickerV2Option): void;
|
|
31
31
|
onDocumentClick(event: MouseEvent): void;
|
|
@@ -32,11 +32,7 @@ export declare class ChessimalsChallengeProgressService {
|
|
|
32
32
|
private runsPath;
|
|
33
33
|
private readLocalActiveRun;
|
|
34
34
|
private writeLocalActiveRun;
|
|
35
|
-
private clearLocalActiveRun;
|
|
36
35
|
private localActiveRunKey;
|
|
37
|
-
private newestActiveRun;
|
|
38
|
-
private runProgressScore;
|
|
39
|
-
private runTime;
|
|
40
36
|
private withoutUndefined;
|
|
41
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChessimalsChallengeProgressService, never>;
|
|
42
38
|
static ɵprov: i0.ɵɵInjectableDeclaration<ChessimalsChallengeProgressService>;
|
|
@@ -114,7 +114,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
114
114
|
readonly botProfiles: ChessimalsBotProfile[];
|
|
115
115
|
readonly challengeLadder: ChessimalsChallengeBot[];
|
|
116
116
|
readonly animals: ChessimalsAnimalView[];
|
|
117
|
-
readonly valtechComponentsVersion = "4.0.
|
|
117
|
+
readonly valtechComponentsVersion = "4.0.540";
|
|
118
118
|
readonly screen: import("@angular/core").WritableSignal<"home" | "challenge" | "path" | "game">;
|
|
119
119
|
readonly selectedBoardSize: import("@angular/core").WritableSignal<ChessimalsBoardSize>;
|
|
120
120
|
readonly selectedLocalMode: import("@angular/core").WritableSignal<ChessimalsLocalMode>;
|
|
@@ -135,12 +135,9 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
135
135
|
readonly turnSecondsRemaining: import("@angular/core").WritableSignal<number>;
|
|
136
136
|
readonly selectedPieceId: import("@angular/core").WritableSignal<string>;
|
|
137
137
|
readonly selectedAnimal: import("@angular/core").WritableSignal<ChessimalsAnimalType>;
|
|
138
|
-
readonly isPlayOptionsModalOpen: import("@angular/core").WritableSignal<boolean>;
|
|
139
138
|
readonly isRulesModalOpen: import("@angular/core").WritableSignal<boolean>;
|
|
140
139
|
readonly isSettingsModalOpen: import("@angular/core").WritableSignal<boolean>;
|
|
141
140
|
readonly isAboutModalOpen: import("@angular/core").WritableSignal<boolean>;
|
|
142
|
-
private pendingSoloGameStart;
|
|
143
|
-
private pendingAboutFeedbackNavigation;
|
|
144
141
|
readonly tutorialMode: import("@angular/core").WritableSignal<boolean>;
|
|
145
142
|
readonly isBoardOrienting: import("@angular/core").WritableSignal<boolean>;
|
|
146
143
|
readonly movingPiece: import("@angular/core").WritableSignal<ChessimalsMovingPieceView>;
|
|
@@ -181,7 +178,6 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
181
178
|
readonly selectedBotProfile: import("@angular/core").Signal<ChessimalsBotProfile>;
|
|
182
179
|
readonly gameBotProfile: import("@angular/core").Signal<ChessimalsBotProfile>;
|
|
183
180
|
readonly activeChallengeBot: import("@angular/core").Signal<ChessimalsChallengeBot>;
|
|
184
|
-
readonly resumableChallengeRun: import("@angular/core").Signal<ChessimalsChallengeRun>;
|
|
185
181
|
set onlineGameId(value: string | null | undefined);
|
|
186
182
|
miniGamesRoute: string;
|
|
187
183
|
projectionMode: boolean;
|
|
@@ -249,7 +245,6 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
249
245
|
readonly confirmTitle: import("@angular/core").Signal<string>;
|
|
250
246
|
readonly confirmBody: import("@angular/core").Signal<string>;
|
|
251
247
|
readonly confirmActions: import("@angular/core").Signal<ButtonMetadata[]>;
|
|
252
|
-
readonly playOptionsActions: import("@angular/core").Signal<ButtonMetadata[]>;
|
|
253
248
|
readonly rulesActions: import("@angular/core").Signal<ButtonMetadata[]>;
|
|
254
249
|
readonly aboutActions: import("@angular/core").Signal<ButtonMetadata[]>;
|
|
255
250
|
readonly actionHint: import("@angular/core").Signal<string>;
|
|
@@ -260,17 +255,12 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
260
255
|
private shortUserId;
|
|
261
256
|
private rangeValueToNumber;
|
|
262
257
|
startChallenge(): void;
|
|
263
|
-
requestNewChallenge(): void;
|
|
264
258
|
openChallengeView(): void;
|
|
265
259
|
backToHome(): void;
|
|
266
|
-
private cancelActiveGameplayFeedback;
|
|
267
260
|
private createNewChallengeRun;
|
|
268
|
-
private resetChallengeSessionState;
|
|
269
261
|
resumeChallenge(run?: ChessimalsChallengeRun): void;
|
|
270
262
|
continueChallenge(): void;
|
|
271
263
|
private startChallengeRound;
|
|
272
|
-
private enterChallengeRound;
|
|
273
|
-
private isResumableChallengeRun;
|
|
274
264
|
startGame(): void;
|
|
275
265
|
private handleChallengeRoundFinished;
|
|
276
266
|
private abandonChallengeIfNeeded;
|
|
@@ -282,7 +272,6 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
282
272
|
restartGame(): void;
|
|
283
273
|
exitTutorial(): void;
|
|
284
274
|
resetToModeSetup(): void;
|
|
285
|
-
private returnChallengeToMenu;
|
|
286
275
|
resetToGamesMenu(): void;
|
|
287
276
|
private resetFinishedLocalGameForNextVisit;
|
|
288
277
|
requestRestartGame(): void;
|
|
@@ -293,12 +282,6 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
293
282
|
handleConfirmModalDismissed(): void;
|
|
294
283
|
confirmPendingAction(token?: string): void;
|
|
295
284
|
private resignGame;
|
|
296
|
-
openPlayOptionsModal(): void;
|
|
297
|
-
closePlayOptionsModal(): void;
|
|
298
|
-
handlePlayOptionsModalDismissed(): void;
|
|
299
|
-
handlePlayOptionsAction(event: {
|
|
300
|
-
action?: ButtonMetadata;
|
|
301
|
-
}): void;
|
|
302
285
|
openRulesModal(): void;
|
|
303
286
|
closeRulesModal(): void;
|
|
304
287
|
openSettingsModal(): void;
|
|
@@ -306,10 +289,6 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
306
289
|
openPathView(): void;
|
|
307
290
|
openAboutModal(): void;
|
|
308
291
|
closeAboutModal(): void;
|
|
309
|
-
handleAboutModalDismissed(): void;
|
|
310
|
-
handleAboutAction(event: {
|
|
311
|
-
action?: ButtonMetadata;
|
|
312
|
-
}): void;
|
|
313
292
|
setMusicVolume(value: number | RangeValue): void;
|
|
314
293
|
setSfxVolume(value: number | RangeValue): void;
|
|
315
294
|
private tutorialExpectedMove;
|
|
@@ -327,9 +306,6 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
327
306
|
private isPromotionMove;
|
|
328
307
|
private animateMove;
|
|
329
308
|
private applyAnimatedMove;
|
|
330
|
-
private activeGameForRun;
|
|
331
|
-
private persistActiveChallengeGame;
|
|
332
|
-
private cloneChallengeGame;
|
|
333
309
|
private playPowerUnlockSound;
|
|
334
310
|
private queueBotTurnIfNeeded;
|
|
335
311
|
private playBotTurn;
|
|
@@ -421,14 +397,10 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
421
397
|
botProfileDescription(profile: ChessimalsBotProfile): string;
|
|
422
398
|
botProfileTendency(profile: ChessimalsBotProfile): string;
|
|
423
399
|
botProfileAvatar(profileId: ChessimalsBotProfileId): string;
|
|
424
|
-
botProfileAvatarSrc(profileId: ChessimalsBotProfileId): string;
|
|
425
400
|
challengeBotProfile(bot: ChessimalsChallengeBot): ChessimalsBotProfile | undefined;
|
|
426
401
|
challengeOpeningBot(): ChessimalsChallengeBot;
|
|
427
402
|
challengeMenuBot(): ChessimalsChallengeBot;
|
|
428
403
|
challengeMenuRoundLabel(): string;
|
|
429
|
-
challengeMenuLivesLabel(): string;
|
|
430
|
-
challengeMenuClearedRound(): number;
|
|
431
|
-
private challengeMenuRun;
|
|
432
404
|
challengeBotName(bot: ChessimalsChallengeBot): string;
|
|
433
405
|
challengeBotDifficultyLabel(bot: ChessimalsChallengeBot): string;
|
|
434
406
|
challengeBotStyleLine(bot: ChessimalsChallengeBot): string;
|
|
@@ -440,7 +412,6 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
440
412
|
showChallengeIntro(): void;
|
|
441
413
|
dismissChallengeIntro(): void;
|
|
442
414
|
challengeLiveAvatar(): string;
|
|
443
|
-
challengeLiveAvatarSrc(): string;
|
|
444
415
|
challengeLiveRivalName(): string;
|
|
445
416
|
challengeLiveRivalLine(): string;
|
|
446
417
|
challengeLiveStreakLabel(): string;
|
|
@@ -451,12 +422,10 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
451
422
|
challengeOutcomeTitle(): string;
|
|
452
423
|
challengeOutcomeBody(): string;
|
|
453
424
|
challengeSummaryAvatar(): string;
|
|
454
|
-
challengeSummaryAvatarSrc(): string;
|
|
455
425
|
challengeRoundStageLabel(): string;
|
|
456
426
|
challengeRivalVoiceLabel(): string;
|
|
457
427
|
challengeRivalVoiceTitle(): string;
|
|
458
428
|
challengeRivalVoiceBody(): string;
|
|
459
|
-
private challengeVoiceText;
|
|
460
429
|
challengeNextRivalLabel(): string;
|
|
461
430
|
challengeContinueLabel(): string;
|
|
462
431
|
challengeNextRivalHint(): string;
|
|
@@ -169,6 +169,7 @@ export declare class ChristianityGameComponent {
|
|
|
169
169
|
protected readonly canNavigatePreviewAbilities: import("@angular/core").Signal<boolean>;
|
|
170
170
|
protected readonly selectedPreviewAbilityPositionLabel: import("@angular/core").Signal<string>;
|
|
171
171
|
protected readonly selectedPreviewAbility: import("@angular/core").Signal<ChristianityPreviewAbility>;
|
|
172
|
+
private isPreviewAbilityPlaceholder;
|
|
172
173
|
protected readonly combatCallout: import("@angular/core").Signal<MiniGameCalloutMetadata>;
|
|
173
174
|
protected readonly splashStatusText: import("@angular/core").Signal<string>;
|
|
174
175
|
protected readonly startFeaturedCards: import("@angular/core").Signal<ChristianityCardDefinition[]>;
|
|
@@ -10,7 +10,6 @@ export declare class RetroAudioService {
|
|
|
10
10
|
private pausedMelody?;
|
|
11
11
|
private suspendTimer?;
|
|
12
12
|
private readonly activeSamples;
|
|
13
|
-
private readonly activeBufferSources;
|
|
14
13
|
private sampleMusic?;
|
|
15
14
|
private sampleMusicConfig?;
|
|
16
15
|
private sampleMusicSource?;
|
|
@@ -92,7 +91,6 @@ export declare class RetroAudioService {
|
|
|
92
91
|
private sampleMusicVolume;
|
|
93
92
|
private sampleVolume;
|
|
94
93
|
private applyActiveSampleVolumes;
|
|
95
|
-
private stopActiveSamples;
|
|
96
94
|
private connectSampleMusic;
|
|
97
95
|
private disconnectSampleMusicGraph;
|
|
98
96
|
private tone;
|
|
@@ -58,7 +58,6 @@ export interface ChessimalsBotProfile {
|
|
|
58
58
|
id: ChessimalsBotProfileId;
|
|
59
59
|
difficulty: ChessimalsBotDifficulty;
|
|
60
60
|
avatar: string;
|
|
61
|
-
avatarSrc?: string;
|
|
62
61
|
labelKey: string;
|
|
63
62
|
descriptionKey: string;
|
|
64
63
|
}
|
|
@@ -108,7 +107,6 @@ export interface ChessimalsChallengeRun {
|
|
|
108
107
|
currentStreak: number;
|
|
109
108
|
botLadder: string[];
|
|
110
109
|
roundResults: ChessimalsChallengeRoundResult[];
|
|
111
|
-
activeGame?: ChessimalsGameState;
|
|
112
110
|
startedAt: string;
|
|
113
111
|
lastEventAt?: string;
|
|
114
112
|
updatedAt: string;
|
|
@@ -1,26 +1,12 @@
|
|
|
1
1
|
import { ValidatorFn } from '@angular/forms';
|
|
2
2
|
import { ComponentState, FormMetadata, InputMetadata, InputType } from '../../components/types';
|
|
3
|
-
import {
|
|
3
|
+
import { FieldSchemaDef } from './types';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class FormSchemaBuilderService {
|
|
6
6
|
private i18n;
|
|
7
7
|
buildForm(schema: FieldSchemaDef[], i18nNamespace: string, formName: string, submitLabelKey?: string, state?: ComponentState): FormMetadata;
|
|
8
8
|
protected buildField(def: FieldSchemaDef, i18nNamespace: string, state: ComponentState): InputMetadata;
|
|
9
|
-
createFieldSchema(field: Partial<FieldSchemaDef> & Pick<FieldSchemaDef, 'name' | 'label'>, order: number): FieldSchemaDef;
|
|
10
|
-
createFormSchemaConfig(input: {
|
|
11
|
-
schemaId: string;
|
|
12
|
-
schemaVersion?: string;
|
|
13
|
-
labelEs?: string;
|
|
14
|
-
labelEn?: string;
|
|
15
|
-
fields: FieldSchemaDef[];
|
|
16
|
-
canonicalAliases?: CanonicalFieldAliases;
|
|
17
|
-
}): FormSchemaConfig;
|
|
18
|
-
buildCanonicalMap(fields: FieldSchemaDef[], aliases?: CanonicalFieldAliases): Record<string, string>;
|
|
19
|
-
toToken(value: string): string;
|
|
20
|
-
uniqueFieldName(value: string, existingFields: Array<Pick<FieldSchemaDef, 'name'>>): string;
|
|
21
9
|
protected parseValidators(def: FieldSchemaDef): ValidatorFn[];
|
|
22
|
-
defaultValidatorsFor(type: string, required: boolean): string[];
|
|
23
|
-
private normalizeOptions;
|
|
24
10
|
protected parseInputType(typeStr: string): InputType;
|
|
25
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormSchemaBuilderService, never>;
|
|
26
12
|
static ɵprov: i0.ɵɵInjectableDeclaration<FormSchemaBuilderService>;
|
|
@@ -33,7 +33,3 @@ export interface FormSchemaConfig {
|
|
|
33
33
|
canonicalMap?: Record<string, string>;
|
|
34
34
|
fieldSchema: FieldSchemaDef[];
|
|
35
35
|
}
|
|
36
|
-
export interface CanonicalFieldAliases {
|
|
37
|
-
[canonicalName: string]: string[];
|
|
38
|
-
}
|
|
39
|
-
export declare const DEFAULT_CANONICAL_FIELD_ALIASES: CanonicalFieldAliases;
|
package/lib/version.d.ts
CHANGED
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -288,7 +288,6 @@ export * from './lib/components/organisms/terminal-404/terminal-404.component';
|
|
|
288
288
|
export * from './lib/components/organisms/terminal-404/types';
|
|
289
289
|
export * from './lib/components/organisms/bottom-nav/bottom-nav.component';
|
|
290
290
|
export * from './lib/components/organisms/bottom-nav/types';
|
|
291
|
-
export * from './lib/components/organisms/bottom-nav/side-nav-adapter';
|
|
292
291
|
export * from './lib/components/organisms/avatar-upload/avatar-upload.component';
|
|
293
292
|
export * from './lib/components/organisms/avatar-upload/types';
|
|
294
293
|
export * from './lib/components/organisms/profile-view/profile-view.component';
|
|
@@ -526,4 +525,3 @@ export { TypingIndicatorComponent } from './lib/components/molecules/typing-indi
|
|
|
526
525
|
export { ChatWindowComponent } from './lib/components/organisms/chat-window/chat-window.component';
|
|
527
526
|
export * from './lib/components/organisms/chat-window/types';
|
|
528
527
|
export { ThreadPanelComponent } from './lib/components/organisms/thread-panel/thread-panel.component';
|
|
529
|
-
export * from './lib/services/forms';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export function buildSideNavItemsFromBottomNav(config, options = {}) {
|
|
2
|
-
return config.tabs
|
|
3
|
-
.filter(tab => !tab.canShow || tab.canShow())
|
|
4
|
-
.map(tab => ({
|
|
5
|
-
label: tab.label || (tab.labelKey ? options.translate?.(tab.labelKey, config.i18nNamespace) : '') || '',
|
|
6
|
-
icon: tab.icon.default,
|
|
7
|
-
route: Array.isArray(tab.route) ? tab.route.join('/') : tab.route,
|
|
8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ICAgIGV4YWN0OiBvcHRpb25zLmV4YWN0ID8/IGZhbHNlLFxuICAgIH0pKTtcbn1cbiJdfQ==
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SideNavItem } from '../../templates/page-wrapper/types';
|
|
2
|
-
import { BottomNavMetadata } from './types';
|
|
3
|
-
export interface SideNavFromBottomNavOptions {
|
|
4
|
-
translate?: (key: string, namespace?: string) => string;
|
|
5
|
-
exact?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare function buildSideNavItemsFromBottomNav(config: BottomNavMetadata, options?: SideNavFromBottomNavOptions): SideNavItem[];
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
# Game Art Assets
|
|
2
|
-
|
|
3
|
-
Guia breve para generar, limpiar y guardar arte raster para mini juegos.
|
|
4
|
-
|
|
5
|
-
## Cuando usar este flujo
|
|
6
|
-
|
|
7
|
-
Usar `image_gen` para assets visuales de juego que deban sentirse hechos a medida:
|
|
8
|
-
|
|
9
|
-
- avatares de rivales o jugadores;
|
|
10
|
-
- cartas, fichas, piezas, power-ups o insignias;
|
|
11
|
-
- fondos, escenas, tableros decorativos o banners internos;
|
|
12
|
-
- sprites o sprite sheets simples.
|
|
13
|
-
|
|
14
|
-
No usar este flujo para iconos que ya pertenezcan al sistema visual, SVGs deterministas, diagramas simples o UI que pueda resolverse mejor con CSS/HTML.
|
|
15
|
-
|
|
16
|
-
## Flujo recomendado
|
|
17
|
-
|
|
18
|
-
1. Generar el asset con `image_gen`.
|
|
19
|
-
2. Si se necesita transparencia, pedir fondo chroma plano.
|
|
20
|
-
3. Copiar el resultado desde `$CODEX_HOME/generated_images/...` al workspace.
|
|
21
|
-
4. Remover chroma localmente.
|
|
22
|
-
5. Recortar, centrar y normalizar tamanos.
|
|
23
|
-
6. Revisar sobre fondo claro y oscuro.
|
|
24
|
-
7. Guardar solo los assets finales usados por la app.
|
|
25
|
-
8. Conectar el asset con fallback textual o emoji si aplica.
|
|
26
|
-
|
|
27
|
-
## Prompt base para transparencia
|
|
28
|
-
|
|
29
|
-
```text
|
|
30
|
-
Create the requested game asset on a perfectly flat solid #00ff00 chroma-key background for background removal.
|
|
31
|
-
The background must be one uniform color with no shadows, gradients, texture, reflections, floor plane, or lighting variation.
|
|
32
|
-
Keep the subject fully separated from the background with crisp edges and generous padding.
|
|
33
|
-
Do not use #00ff00 anywhere in the subject.
|
|
34
|
-
No cast shadow, no contact shadow, no reflection, no watermark, and no text unless explicitly requested.
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
Para sujetos verdes, usar otro chroma improbable, por ejemplo `#ff00ff`.
|
|
38
|
-
|
|
39
|
-
## Remover chroma
|
|
40
|
-
|
|
41
|
-
Preferir el helper instalado por Codex:
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
python "${CODEX_HOME:-$HOME/.codex}/skills/.system/imagegen/scripts/remove_chroma_key.py" \
|
|
45
|
-
--input <source.png> \
|
|
46
|
-
--out <final.png> \
|
|
47
|
-
--auto-key border \
|
|
48
|
-
--soft-matte \
|
|
49
|
-
--transparent-threshold 12 \
|
|
50
|
-
--opaque-threshold 220 \
|
|
51
|
-
--despill
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
Si el borde queda con halo, reintentar una vez con:
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
python "${CODEX_HOME:-$HOME/.codex}/skills/.system/imagegen/scripts/remove_chroma_key.py" \
|
|
58
|
-
--input <source.png> \
|
|
59
|
-
--out <final.png> \
|
|
60
|
-
--auto-key border \
|
|
61
|
-
--soft-matte \
|
|
62
|
-
--transparent-threshold 12 \
|
|
63
|
-
--opaque-threshold 220 \
|
|
64
|
-
--edge-contract 1 \
|
|
65
|
-
--despill
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
## Sprite sheets
|
|
69
|
-
|
|
70
|
-
Para varios personajes, suele funcionar mejor pedir una sprite sheet consistente:
|
|
71
|
-
|
|
72
|
-
```text
|
|
73
|
-
Create 8 cute pixel art rival avatar portraits in a single 4x2 sprite sheet.
|
|
74
|
-
Each cell must have the same size, consistent outline thickness, same lighting and generous padding.
|
|
75
|
-
No text, no letters, no numbers, no watermark.
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
Despues recortar cada celda, remover chroma, centrar en un canvas cuadrado y exportar cada item con nombre semantico:
|
|
79
|
-
|
|
80
|
-
```text
|
|
81
|
-
explorer.png
|
|
82
|
-
guardian.png
|
|
83
|
-
hunter.png
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
## Ubicacion
|
|
87
|
-
|
|
88
|
-
Guardar assets finales en:
|
|
89
|
-
|
|
90
|
-
```text
|
|
91
|
-
frontend/valtech-components/src/lib/assets/games/<game-id>/
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
Ejemplo:
|
|
95
|
-
|
|
96
|
-
```text
|
|
97
|
-
frontend/valtech-components/src/lib/assets/games/chessimals/challenge-avatars/explorer.png
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
Para marcas oficiales de un juego, usar un subdirectorio `brand`:
|
|
101
|
-
|
|
102
|
-
```text
|
|
103
|
-
frontend/valtech-components/src/lib/assets/games/chessimals/brand/chessimals-emblem.png
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
No dejar archivos fuente temporales, hojas generadas o variantes descartadas en el repo salvo que sean necesarios para mantenimiento.
|
|
107
|
-
|
|
108
|
-
## Validacion visual
|
|
109
|
-
|
|
110
|
-
Antes de conectar el asset:
|
|
111
|
-
|
|
112
|
-
- revisar esquinas transparentes;
|
|
113
|
-
- revisar que no exista halo del chroma;
|
|
114
|
-
- probar sobre fondo claro y oscuro;
|
|
115
|
-
- verificar que se lea bien al tamano real de UI;
|
|
116
|
-
- comprobar que no se pueda arrastrar desde la interfaz (`draggable="false"` y CSS anti-drag si aplica);
|
|
117
|
-
- mantener `alt=""` cuando el asset sea decorativo y ya exista texto visible con el nombre.
|
|
118
|
-
|
|
119
|
-
## Conexion en Angular
|
|
120
|
-
|
|
121
|
-
Preferir rutas relativas servidas como assets:
|
|
122
|
-
|
|
123
|
-
```ts
|
|
124
|
-
avatarSrc: 'assets/games/chessimals/challenge-avatars/explorer.png'
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
En template, mantener fallback:
|
|
128
|
-
|
|
129
|
-
```html
|
|
130
|
-
@if (avatarSrc; as src) {
|
|
131
|
-
<img [src]="src" alt="" draggable="false" />
|
|
132
|
-
} @else {
|
|
133
|
-
{{ fallbackAvatar }}
|
|
134
|
-
}
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
## Caso de referencia
|
|
138
|
-
|
|
139
|
-
Chessimals usa este flujo para los avatares pixel art del modo Desafio:
|
|
140
|
-
|
|
141
|
-
```text
|
|
142
|
-
frontend/valtech-components/src/lib/assets/games/chessimals/challenge-avatars/
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
Documentacion ampliada:
|
|
146
|
-
|
|
147
|
-
```text
|
|
148
|
-
docs/frontend/mini-games-art-assets.md
|
|
149
|
-
```
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# Chessimals Brand Assets
|
|
2
|
-
|
|
3
|
-
Assets oficiales de marca para Chessimals.
|
|
4
|
-
|
|
5
|
-
## Archivos
|
|
6
|
-
|
|
7
|
-
- `chessimals-wordmark.png`: palabra CHESSIMALS transparente. Usar cuando ya exista otro elemento visual fuerte cerca.
|
|
8
|
-
- `chessimals-emblem.png`: escudo transparente con las cuatro caritas. Usar como icono, card de selector, about o marca compacta.
|
|
9
|
-
- `chessimals-app-icon.png`: icono maestro 1024x1024 para app stores, PWA o superficies grandes.
|
|
10
|
-
- `chessimals-app-icon-capacitor.png`: fuente 1024x1024 RGB, opaca y sin borde transparente para generar assets con Capacitor.
|
|
11
|
-
- `chessimals-app-icon-512.png`: icono 512x512 para manifiestos PWA.
|
|
12
|
-
- `chessimals-app-icon-192.png`: icono 192x192 para manifiestos PWA.
|
|
13
|
-
- `chessimals-favicon.png`: favicon PNG 64x64.
|
|
14
|
-
|
|
15
|
-
## Reglas
|
|
16
|
-
|
|
17
|
-
- No volver a usar `logo.jpg` o `menu-logo.jpg` para superficies nuevas.
|
|
18
|
-
- Componer emblema y wordmark en HTML/CSS cuando se necesite una portada o splash.
|
|
19
|
-
- Usar `chessimals-app-icon.png` como fuente maestra si se necesitan nuevos tamanos de icono.
|
|
20
|
-
- Usar `chessimals-app-icon-capacitor.png` para `@capacitor/assets`; no usar PNGs transparentes como fuente de iconos nativos.
|
|
21
|
-
- Mantener `alt=""` cuando el logo acompane texto visible de Chessimals.
|
|
22
|
-
- Usar `draggable="false"` o CSS anti-drag si aparece en superficies interactivas.
|
|
23
|
-
- Si se genera una nueva version, preservar estos nombres solo cuando se reemplace oficialmente el asset.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# Chessimals Power Assets
|
|
2
|
-
|
|
3
|
-
Official UI assets for the animal power cards.
|
|
4
|
-
|
|
5
|
-
- `eagle-power.png`: diagonal flight power.
|
|
6
|
-
- `bull-power.png`: straight charge power.
|
|
7
|
-
- `kangaroo-power.png`: jump power.
|
|
8
|
-
- `lion-power.png`: wide board power.
|
|
9
|
-
|
|
10
|
-
Each asset is a transparent 512x512 PNG generated from the current Chessimals
|
|
11
|
-
brand direction. Keep new power assets text-free so labels can remain localized
|
|
12
|
-
in the Angular UI.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|